From 5f172b775765085a74f1422ea63c12453c4f0c59 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Tue, 24 Sep 2024 20:20:17 +0300 Subject: [PATCH] add initial application code alongside it's dependencies --- app/__init__.py | 11 +++++++++++ requirements.txt | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 app/__init__.py create mode 100644 requirements.txt diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..433eabb --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,11 @@ +from flask import Flask +import time + +app = Flask(__name__) + +@app.route("/healthcheck") +def ep_healthcheck(): + return { + "date": time.strftime('%Y.%m.%d %H:%M:%S'), + "status": "OK" + } diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..61a6a90 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +blinker==1.8.2 +click==8.1.7 +Flask==3.0.3 +itsdangerous==2.2.0 +Jinja2==3.1.4 +MarkupSafe==2.1.5 +Werkzeug==3.0.4