add favicon.ico

This commit is contained in:
Stefan Allius
2025-04-17 20:33:17 +02:00
parent 9c7b891a60
commit f33209bf8f

View File

@@ -1,5 +1,7 @@
from quart import Blueprint
from quart import render_template
from quart import send_from_directory
import os
web_routes = Blueprint('web_routes', __name__)
@@ -12,3 +14,11 @@ async def index():
@web_routes.route('/page')
async def empty():
return await render_template('empty.html')
@web_routes.route('/favicon.ico')
async def favicon():
return await send_from_directory(
os.path.join(web_routes.root_path, 'static/images'),
'logo.png',
mimetype='image/vnd.microsoft.icon')