From d004f3c69da280011e05f3ef62fcb3a75e6ed39a Mon Sep 17 00:00:00 2001 From: q Date: Thu, 23 Jan 2025 11:02:59 +0200 Subject: [PATCH] show frontpage for debuggnig --- code/app.py | 8 +++-- code/static/mfl.svg | 67 +++++++++++++++++++++++++++++++++++++++ code/templates/index.html | 9 ++++++ docker-compose.yaml | 2 -- 4 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 code/static/mfl.svg create mode 100644 code/templates/index.html diff --git a/code/app.py b/code/app.py index 0c4c700..c7083ca 100644 --- a/code/app.py +++ b/code/app.py @@ -45,7 +45,7 @@ logging.basicConfig( format=f"[%(asctime)s] [%(levelname)s] %(message)s", ) -__VERSION__ = "20240928.0" +__VERSION__ = "20250123.0" app = Flask(__name__) app.config.from_object(__name__) app.config.from_prefixed_env() @@ -68,8 +68,10 @@ def log_the_status_code(response): @app.route("/") def index(): - """Returns Nothing""" - return "", 200 + """Returns Index""" + return render_template( + "index.html" + ) @app.route('/health.html', methods=["GET",]) # fmt: skip diff --git a/code/static/mfl.svg b/code/static/mfl.svg new file mode 100644 index 0000000..e79d660 --- /dev/null +++ b/code/static/mfl.svg @@ -0,0 +1,67 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/code/templates/index.html b/code/templates/index.html new file mode 100644 index 0000000..389630d --- /dev/null +++ b/code/templates/index.html @@ -0,0 +1,9 @@ + + + + + MF + + + + diff --git a/docker-compose.yaml b/docker-compose.yaml index 468bf45..0818cb1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,3 @@ -version: '2' - services: miniflees: