Skip to content

Commit aeee858

Browse files
authored
Update app.py
1 parent 123b985 commit aeee858

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/app.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ def sitemap():
5757
return send_from_directory(static_file_dir, 'index.html')
5858

5959
# 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-
7360
@app.route('/<path:path>', methods=['GET'])
7461
def serve_any_other_file(path):
7562
if not os.path.isfile(os.path.join(static_file_dir, path)):

0 commit comments

Comments
 (0)