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 847367c commit 123b985Copy full SHA for 123b985
src/app.py
@@ -58,6 +58,17 @@ def sitemap():
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):
0 commit comments