mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-09 09:18:31 +01:00
send favicon from content dir
This commit is contained in:
@@ -319,7 +319,7 @@ def sendPicture(path):
|
|||||||
|
|
||||||
@app.route('/defaultFavicon.ico')
|
@app.route('/defaultFavicon.ico')
|
||||||
def icon():
|
def icon():
|
||||||
return flask.send_from_directory('static', 'defaultFavicon.ico')
|
return flask.send_from_directory(app.config["CONTENT_DIR"], 'defaultFavicon.ico')
|
||||||
|
|
||||||
@app.route('/robots.txt')
|
@app.route('/robots.txt')
|
||||||
def robots():
|
def robots():
|
||||||
|
|||||||
Reference in New Issue
Block a user