From 284a8e704248d71866e05aba41e44bae5fcf55ac Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 13 Feb 2021 14:16:00 +1100 Subject: [PATCH] Added an endpoint to return the favicon. --- vasl_templates/webapp/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vasl_templates/webapp/main.py b/vasl_templates/webapp/main.py index 48ae90e..e0ace94 100644 --- a/vasl_templates/webapp/main.py +++ b/vasl_templates/webapp/main.py @@ -368,6 +368,16 @@ def get_control_tests(): # --------------------------------------------------------------------- +@app.route( "/favicon.ico" ) +def get_favicon(): + """Get the license.""" + # FUDGE! We specify the favicon in the main page (in a tag), but the additional support pages + # don't have this, which results in a spurious and annoying 404 warning message in the console, + # so we explicitly provide this endpoint :-/ + return app.send_static_file( "images/app.ico" ) + +# --------------------------------------------------------------------- + @app.route( "/ping" ) def ping(): """Let the caller know we're alive."""