This commit is contained in:
2024-11-21 13:54:47 +05:00
parent 04d9162fff
commit 9e9c7bffdd
18 changed files with 65 additions and 15 deletions
+6 -1
View File
@@ -13,4 +13,9 @@ def send_css(path):
def send_js(path):
resp = make_response(send_from_directory(os.path.join(config['WEB_APP']['template_folder'], 'static/js'), path), 200)
resp.headers['Cache-Control'] = 'public, max-age=31536000'
return resp
return resp
@webApp.route('/pic/<path:path>')
def send_pic(path):
return send_from_directory(os.path.join(config['WEB_APP']['template_folder'], 'static/pics'), path), 200