add favicon.ico
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
from quart import Blueprint
|
from quart import Blueprint
|
||||||
from quart import render_template
|
from quart import render_template
|
||||||
|
from quart import send_from_directory
|
||||||
|
import os
|
||||||
|
|
||||||
web_routes = Blueprint('web_routes', __name__)
|
web_routes = Blueprint('web_routes', __name__)
|
||||||
|
|
||||||
@@ -12,3 +14,11 @@ async def index():
|
|||||||
@web_routes.route('/page')
|
@web_routes.route('/page')
|
||||||
async def empty():
|
async def empty():
|
||||||
return await render_template('empty.html')
|
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')
|
||||||
|
|||||||
Reference in New Issue
Block a user