Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/api/v1/routes/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dependencies=[Depends(is_admin)],
)
def custom_swagger_ui() -> HTMLResponse:
return get_swagger_ui_html(openapi_url="/openapi.json/", title="Docs")
return get_swagger_ui_html(openapi_url="/api/openapi.json", title="Docs")


@router.get(
Expand All @@ -28,7 +28,7 @@ def custom_swagger_ui() -> HTMLResponse:
dependencies=[Depends(is_admin)],
)
def custom_redoc_html() -> HTMLResponse:
return get_redoc_html(openapi_url="/openapi.json/", title="Redoc")
return get_redoc_html(openapi_url="/api/openapi.json", title="Redoc")


@router.get(
Expand Down
1 change: 1 addition & 0 deletions backend/src/core/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def create_app() -> FastAPI:
name="static",
)

app.include_router(docs_router, prefix="/api")
app.include_router(v1_router, prefix="/api")

@app.get("/api/health")
Expand Down