diff --git a/client/favicon.png b/client/favicon.png index e1a8bd21..aae717b9 100644 Binary files a/client/favicon.png and b/client/favicon.png differ diff --git a/server/app/web/webapp.py b/server/app/web/webapp.py index 4717f155..83921c22 100644 --- a/server/app/web/webapp.py +++ b/server/app/web/webapp.py @@ -1,7 +1,9 @@ +import os from flask import ( - Blueprint, render_template, url_for, current_app + Blueprint, render_template, send_from_directory, current_app ) + bp = Blueprint("webapp", __name__, template_folder="templates") @@ -21,4 +23,4 @@ def swag(): # renders swagger documentation @bp.route("/favicon.png") def favicon(): - return url_for("static", filename="img/favicon.png") + return send_from_directory(os.path.join(bp.root_path, "static/img/"), "favicon.png")