favicons
This commit is contained in:
@@ -13,7 +13,7 @@ def _asset_url(key: str) -> str:
|
|||||||
return path if path.startswith("http") else url_for("static", filename=path)
|
return path if path.startswith("http") else url_for("static", filename=path)
|
||||||
|
|
||||||
|
|
||||||
@app.get("/favicon.ico")
|
@bp.get("/favicon.ico")
|
||||||
def favicon_ico():
|
def favicon_ico():
|
||||||
response = send_from_directory(
|
response = send_from_directory(
|
||||||
current_app.static_folder,
|
current_app.static_folder,
|
||||||
@@ -23,7 +23,7 @@ def favicon_ico():
|
|||||||
)
|
)
|
||||||
response.headers["Cache-Control"] = "public, max-age=86400"
|
response.headers["Cache-Control"] = "public, max-age=86400"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/login", methods=["GET", "POST"])
|
@bp.route("/login", methods=["GET", "POST"])
|
||||||
def login():
|
def login():
|
||||||
|
|||||||
Reference in New Issue
Block a user