backend-development-course/app/__init__.py

12 lines
203 B
Python
Raw Normal View History

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"
}