diff --git a/server/app/app.py b/server/app/app.py index 260bc9ae..03e2bb95 100644 --- a/server/app/app.py +++ b/server/app/app.py @@ -22,7 +22,7 @@ from functools import wraps webbp = Blueprint("webapp", "server.common.web", template_folder="templates") -@webbp.route("/") +@webbp.route("/", methods=["GET"]) def dataset_index(dataset=None): config = current_app.app_config if dataset is None: @@ -44,12 +44,12 @@ def dataset_index(dataset=None): return make_response(f"Invalid dataset {dataset}: {str(e)}", HTTPStatus.BAD_REQUEST) -@webbp.route("/favicon.png") +@webbp.route("/favicon.png", methods=["GET"]) def favicon(): return send_from_directory(os.path.join(webbp.root_path, "static/img/"), "favicon.png") -@webbp.route("/health") +@webbp.route("/health", methods=["GET"]) def health(): config = current_app.app_config return health_check(config) @@ -95,8 +95,8 @@ def static_redirect(dataset, therest): def dataroot_test_index(): # the following index page is meant for testing/debugging purposes data = '' - data += '