Skip to content

Commit

Permalink
refactor: (router) Relocate sync_router inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeikang committed Jun 27, 2024
1 parent b426062 commit 2a163e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ async def shutdown_event():
await http_client.aclose()


app.include_router(sync_router, prefix="/api/v1/me")


@app.post("/api/v1/ai/chat_completions")
async def chat_completions(request: Request):
raycast_data = await request.json()
Expand Down Expand Up @@ -179,9 +182,6 @@ async def forward(client, server):
await asyncio.gather(forward(websocket, target_ws), forward(target_ws, websocket))


app.include_router(sync_router, prefix="/api/v1/me")


if __name__ == "__main__":
import uvicorn

Expand Down

0 comments on commit 2a163e7

Please sign in to comment.