We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 123b985 commit aeee858Copy full SHA for aeee858
src/app.py
@@ -57,19 +57,6 @@ def sitemap():
57
return send_from_directory(static_file_dir, 'index.html')
58
59
# any other endpoint will try to serve it like a static file
60
-
61
-@app.route('/admin', methods=['GET'])
62
-def serve_any_other_file(path):
63
- response = send_from_directory(static_file_dir, path)
64
- response.cache_control.max_age = 0 # avoid cache memory
65
- return response
66
67
-@app.route('/admin/<path:path>', methods=['GET'])
68
69
70
71
72
73
@app.route('/<path:path>', methods=['GET'])
74
def serve_any_other_file(path):
75
if not os.path.isfile(os.path.join(static_file_dir, path)):
0 commit comments