diff --git a/backend/src/api/v1/routes/docs.py b/backend/src/api/v1/routes/docs.py index 9c16801..0d9491c 100644 --- a/backend/src/api/v1/routes/docs.py +++ b/backend/src/api/v1/routes/docs.py @@ -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( @@ -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( diff --git a/backend/src/core/app/app.py b/backend/src/core/app/app.py index 2db90df..76fe05d 100644 --- a/backend/src/core/app/app.py +++ b/backend/src/core/app/app.py @@ -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")