Skip to content

Commit 566a160

Browse files
committed
Also serve backend /docs from /api/docs
1 parent 61cd205 commit 566a160

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/app/factory.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ def create_app(settings=None) -> FastAPI:
1818
settings = get_settings()
1919

2020
# Create FastAPI instance
21-
app = FastAPI(title=settings.api_title, version=settings.api_version)
21+
app = FastAPI(
22+
title=settings.api_title,
23+
version=settings.api_version,
24+
docs_url="/api/docs",
25+
redoc_url="/api/redoc",
26+
openapi_url="/api/openapi.json"
27+
)
2228

2329
# Store dependencies in app state
2430
app.state.settings = settings

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy