fix indentation

This commit is contained in:
2017-02-09 17:56:32 -05:00
parent ac3a38910e
commit 89a46ae2ab
+3 -1
View File
@@ -34,6 +34,7 @@ sentry = Sentry(app, dsn=config('SENTRY_DSN'))
store = bucketstore.get('typy', create=True)
store_total = len(store.list())
@app.after_request
def apply_kr_hello(response):
"""Adds some headers to all responses."""
@@ -56,6 +57,7 @@ def type_away(fork=None):
return render_template('write.html', total=store_total, seed=doc)
@app.route('/raw')
def document_list():
return jsonify({'documents': store.list()})
@@ -84,11 +86,11 @@ def get_type(hash):
def get_raw_type(hash):
return Response(store[hash], mimetype='text/plain')
@app.route('/<hash>/fork')
def fork_type(hash):
return type_away(fork=hash)
if __name__ == '__main__':
app.run()