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
This commit is contained in:
Dominik V. Salonen 2016-11-28 12:32:24 +01:00 committed by GitHub
parent 5708007a92
commit 3eac104641
1 changed files with 0 additions and 5 deletions

5
run.py
View File

@ -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/<filename>')
@app.route('/file/<filename>')
def serve_legacy(filename):
return send_from_directory('legacy', filename)
# Configure nginx to use these urls as custom error pages
@app.route('/error/<int:error>')