Added favicon

This commit is contained in:
klaasgoethals 2019-02-13 20:25:44 +01:00
parent 52188e0fb2
commit eece1844f2
2 changed files with 7 additions and 1 deletions

BIN
app/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,7 +1,8 @@
from datetime import datetime, timedelta
from flask import url_for, render_template, abort
from flask import url_for, render_template, abort, send_from_directory
from flask_login import login_required
import os
from app import app
from models import Order, Location
@ -45,6 +46,11 @@ def profile():
return render_template('profile.html')
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico', mimetype='image/x-icon')
if app.debug: # add route information
@app.route('/routes')
@login_required