✨ feat(main.py): add health endpoint to check the status of the application
This commit is contained in:
parent
648bb25b3f
commit
2af4508e5e
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue