diff --git a/t0txt.py b/t0txt.py index 351b76e..023259f 100644 --- a/t0txt.py +++ b/t0txt.py @@ -90,7 +90,8 @@ def new(): abort(400) @flask_app.route('/', methods=['GET']) -def get(nid): +@flask_app.route('//', methods=['GET']) +def get(nid, filename=None): try: with shelve.open(DB) as db: return db[nid] + '\n', 200, {'Content-Type': 'text/plain; charset=utf-8'}