Skip to content

Commit

Permalink
redirect home to docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Jun 13, 2024
1 parent 0a16cf4 commit 8c056df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from app.config import settings
from app.projects import project_routes
from app.waypoints import waypoint_routes
from fastapi.responses import RedirectResponse

from app.users import user_routes
from loguru import logger as log
Expand Down Expand Up @@ -94,5 +95,6 @@ def get_application() -> FastAPI:


@api.get("/")
def read_root():
return {"Hello": "World"}
async def home():
"""Redirect home to docs."""
return RedirectResponse("/docs")

0 comments on commit 8c056df

Please sign in to comment.