Skip to content

Commit

Permalink
Add favicon.ico endpoint
Browse files Browse the repository at this point in the history
Closes #1121
  • Loading branch information
benbusby committed Mar 6, 2024
1 parent ef54f00 commit c389c26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def window():
)


@app.route(f'/robots.txt')
@app.route('/robots.txt')
def robots():
response = make_response(
'''User-Agent: *
Expand All @@ -604,6 +604,11 @@ def robots():
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
Expand Down

0 comments on commit c389c26

Please sign in to comment.