commit 5f172b775765085a74f1422ea63c12453c4f0c59 Author: dymik739 Date: Tue Sep 24 20:20:17 2024 +0300 add initial application code alongside it's dependencies 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