mirror of
https://github.com/kevin-DL/ShortMe-URL-Shortener.git
synced 2026-01-19 22:25:21 +00:00
Initial commit
This commit is contained in:
13
app/server/routes/internal/favicon.py
Normal file
13
app/server/routes/internal/favicon.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# ------- standard library imports -------
|
||||
import os
|
||||
|
||||
# ------- 3rd party imports -------
|
||||
from flask import Blueprint, send_from_directory
|
||||
|
||||
app_blueprint = Blueprint('app_blueprint', __name__)
|
||||
|
||||
|
||||
@app_blueprint.route('/favicon.ico')
|
||||
def favicon():
|
||||
return send_from_directory(os.path.join(app_blueprint.root_path, 'static'),
|
||||
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
||||
Reference in New Issue
Block a user