Skip to content

Commit

Permalink
Redirect index paths to OpenAPI docs (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 authored Dec 15, 2024
1 parent a919488 commit 7587041
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/routes/index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from fastapi.responses import RedirectResponse
from utils.router import KanaeRouter

router = KanaeRouter()


@router.get("/", include_in_schema=False)
async def index() -> RedirectResponse:
return RedirectResponse("/docs")

0 comments on commit 7587041

Please sign in to comment.