dsf
This commit is contained in:
parent
d43ce29abf
commit
fd61b1cf9d
1 changed files with 1 additions and 2 deletions
|
@ -237,7 +237,7 @@ def log_item(id, v):
|
||||||
|
|
||||||
@app.get("/static/assets/favicon.ico")
|
@app.get("/static/assets/favicon.ico")
|
||||||
def favicon():
|
def favicon():
|
||||||
return send_file(f"./static/assets/images/{site_name}/icon.webp?a=200")
|
return send_file(f"./assets/images/{site_name}/icon.webp?a=200")
|
||||||
|
|
||||||
@app.get("/api")
|
@app.get("/api")
|
||||||
@auth_desired
|
@auth_desired
|
||||||
|
@ -289,7 +289,6 @@ def static_service2(path):
|
||||||
if request.path.endswith('.webp'):
|
if request.path.endswith('.webp'):
|
||||||
resp.headers.remove("Content-Type")
|
resp.headers.remove("Content-Type")
|
||||||
resp.headers.add("Content-Type", "image/webp")
|
resp.headers.add("Content-Type", "image/webp")
|
||||||
|
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
@app.get('/assets/<path:path>')
|
@app.get('/assets/<path:path>')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue