change(assist-stats): removed path prefix, should use the root_path
This commit is contained in:
parent
8a9dcd510b
commit
4bd6093dae
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ def insert_event(event: EventCreate, db: Session):
|
|||
db.close()
|
||||
|
||||
|
||||
@app.post("/assist-stats/events", dependencies=[Depends(api_key_auth)])
|
||||
@app.post("/events", dependencies=[Depends(api_key_auth)])
|
||||
def create_event(event: EventCreate, db: Session = Depends(get_db)):
|
||||
if event.event_state == EventStateEnum.end:
|
||||
update_duration(event.event_id, event.timestamp, db)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue