You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/iti/applications/routes/index.py

12 lines
294 B
Python

from apiflask import APIBlueprint
from flask import send_from_directory, current_app
bp = APIBlueprint("index", __name__, tag="首页")
@bp.get("/favicon.ico")
def get_favicon():
return send_from_directory(
current_app.static_folder, "favicon.ico", mimetype="image/x-icon"
)