From fd75beede8680c76e1c2f626a462ce573ddbd84d Mon Sep 17 00:00:00 2001 From: amine Date: Sat, 20 Jul 2024 12:12:09 +0000 Subject: [PATCH] refactor(backend/api/betting): remove unused html templates --- backend/api/components/betting/controller.py | 5 ++--- backend/api/components/betting/templates/badrequest.html | 0 backend/api/components/betting/templates/notallowed.html | 8 -------- backend/api/components/betting/templates/placeholder.html | 8 -------- 4 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 backend/api/components/betting/templates/badrequest.html delete mode 100644 backend/api/components/betting/templates/notallowed.html delete mode 100644 backend/api/components/betting/templates/placeholder.html diff --git a/backend/api/components/betting/controller.py b/backend/api/components/betting/controller.py index c077b0f..dadbacc 100644 --- a/backend/api/components/betting/controller.py +++ b/backend/api/components/betting/controller.py @@ -1,10 +1,9 @@ -from flask import Blueprint, jsonify, request, render_template, Response +from flask import Blueprint, jsonify, request, Response from api.consts import COMMON_API_PREFIX import api.model.betting -betting_api = Blueprint("betting_api", __name__, url_prefix=COMMON_API_PREFIX + "/betting", - template_folder="templates") +betting_api = Blueprint("betting_api", __name__, url_prefix=COMMON_API_PREFIX + "/betting") @betting_api.route("/", methods=["GET"]) diff --git a/backend/api/components/betting/templates/badrequest.html b/backend/api/components/betting/templates/badrequest.html deleted file mode 100644 index e69de29..0000000 diff --git a/backend/api/components/betting/templates/notallowed.html b/backend/api/components/betting/templates/notallowed.html deleted file mode 100644 index 0afa3eb..0000000 --- a/backend/api/components/betting/templates/notallowed.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -

this request type is not allowed, only post

- - \ No newline at end of file diff --git a/backend/api/components/betting/templates/placeholder.html b/backend/api/components/betting/templates/placeholder.html deleted file mode 100644 index d408ebc..0000000 --- a/backend/api/components/betting/templates/placeholder.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -

Placeholder

- - \ No newline at end of file