feat(main.py): add health endpoint to check the status of the application

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-25 16:28:56 -03:00
commit 2af4508e5e

View file

@ -31,6 +31,10 @@ def create_app():
allow_headers=["*"],
)
@app.get("/health")
def health():
return {"status": "ok"}
app.include_router(router)
app.on_event("startup")(initialize_services)