Include /bridge in schema

This commit is contained in:
Nexus 2024-02-26 11:33:33 +00:00
parent 1e0a391ae5
commit 972c77953a

View file

@ -223,7 +223,7 @@ async def authenticate(req: Request, code: str = None, state: str = None):
return response return response
@app.post("/bridge", include_in_schema=False, status_code=201, dependencies=[Depends(is_authenticated)] @app.post("/bridge", status_code=201, dependencies=[Depends(is_authenticated)]
async def bridge(req: Request): async def bridge(req: Request):
now = datetime.utcnow() now = datetime.utcnow()
ts_diff = (now - app.state.last_sender_ts).total_seconds() ts_diff = (now - app.state.last_sender_ts).total_seconds()