From 3eac1046412a4bfb33e7b753ab2d80cf68c9648e Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Mon, 28 Nov 2016 12:32:24 +0100 Subject: [PATCH] Remove legacy support It's been handled using 301 redirects in nginx for a while. But I've been too lazy to remove the code block until now --- run.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/run.py b/run.py index 981416e..0d23de5 100755 --- a/run.py +++ b/run.py @@ -153,11 +153,6 @@ def get_file(filename): print_log('Warning', 'Unable to update access time. Is the file in the database?') return send_from_directory(config['UPLOAD_FOLDER'], filename) -@app.route('/share/') -@app.route('/file/') -def serve_legacy(filename): - return send_from_directory('legacy', filename) - # Configure nginx to use these urls as custom error pages @app.route('/error/')