Skip to content

Commit

Permalink
fix: use get_router() function to get the router
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Jun 21, 2024
1 parent 9aa1ab1 commit 89167f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deepaas/api/v2/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@ async def get():
return fastapi.responses.PlainTextResponse(resp)
else:
return fastapi.responses.Response(status_code=204)


def get_router() -> fastapi.APIRouter:
"""Auxiliary function to get the router.
We use this function to be able to include the router in the main
application and do things before it gets included.
"""
return router

0 comments on commit 89167f4

Please sign in to comment.