Add favicon.ico endpoint

Closes #1121
main
Ben Busby 2024-03-06 10:37:48 -07:00
parent ef54f00212
commit c389c26220
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1
1 changed files with 6 additions and 1 deletions

View File

@ -595,7 +595,7 @@ def window():
)
@app.route(f'/robots.txt')
@app.route('/robots.txt')
def robots():
response = make_response(
'''User-Agent: *
@ -604,6 +604,11 @@ Disallow: /''', 200)
return response
@app.route('/favicon.ico')
def favicon():
return app.send_static_file('img/favicon.ico')
@app.errorhandler(404)
def page_not_found(e):
return render_template('error.html', error_message=str(e)), 404