File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,6 @@ def sitemap():
57
57
return send_from_directory (static_file_dir , 'index.html' )
58
58
59
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
- def serve_any_other_file (path ):
69
- response = send_from_directory (static_file_dir , path )
70
- response .cache_control .max_age = 0 # avoid cache memory
71
- return response
72
-
73
60
@app .route ('/<path:path>' , methods = ['GET' ])
74
61
def serve_any_other_file (path ):
75
62
if not os .path .isfile (os .path .join (static_file_dir , path )):
You can’t perform that action at this time.
0 commit comments