Skip to content

Commit

Permalink
remove base url redirect from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gphorvath committed Oct 2, 2024
1 parent fbff15e commit 6dc7fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leapfrogai_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan)


@app.get("/")
@app.get("/", include_in_schema=False)
async def root():
"""Intercepts the root path and redirects to the API documentation."""
return RedirectResponse(url="/docs")
Expand Down

0 comments on commit 6dc7fb7

Please sign in to comment.