feat(api): service assist stats - health check
This commit is contained in:
parent
83e6276770
commit
e65950fe97
2 changed files with 6 additions and 1 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue