Init command for bam cli

This commit is contained in:
2014-11-05 15:00:54 +01:00
parent 8b1085edd1
commit e13dabbb71
2 changed files with 46 additions and 8 deletions

View File

@@ -45,14 +45,6 @@ import config
app.config.from_object(config.Development)
@api.representation('application/octet-stream')
def output_file(data, code, headers=None):
"""Makes a Flask response to return a file."""
resp = make_response(data, code)
resp.headers.extend(headers or {})
return resp
@auth.get_password
def get_password(username):
if username == 'bam':