feat(api): service assist stats - health check

This commit is contained in:
Shekar Siri 2023-10-03 17:16:22 +02:00
parent 83e6276770
commit e65950fe97
2 changed files with 6 additions and 1 deletions

View file

@ -153,3 +153,8 @@ def create_event(event: EventCreate, db: Session = Depends(get_db)):
update_duration(event.event_id, event.timestamp, db)
else:
insert_event(event, db)
@app.get("/", tags=["health"])
def health_check():
return {"status": "ok"}

View file

@ -2,4 +2,4 @@ import uvicorn
from decouple import config
if __name__ == "__main__":
uvicorn.run("main:app", host="0.0.0.0", port=8080, reload=True)
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)