mirror of
https://github.com/not-kennethreitz/typy.io.git
synced 2026-06-05 07:06:12 +00:00
fix indentation
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user