Skip to content

Commit

Permalink
put root router to last in order
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Jul 31, 2024
1 parent 36a8fdc commit a2b7b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
app.include_router(account.app, include_in_schema=False)
app.include_router(facebook_api.app, include_in_schema=False)
app.include_router(slack_api.router, include_in_schema=False)
app.include_router(root.app, include_in_schema=False)
app.include_router(url_shortener.app, include_in_schema=False)
app.include_router(paypal.router, include_in_schema=False)
app.include_router(stripe.router, include_in_schema=False)
app.include_router(twilio_api.router, include_in_schema=False)
app.include_router(root.app, include_in_schema=False) # this has a catch-all route

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit a2b7b32

Please sign in to comment.