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:
parent
5708007a92
commit
3eac104641
5
run.py
5
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/<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>')
|
||||
|
|
Loading…
Reference in New Issue