Map OpenAPI docs URL to /api
This commit is contained in:
parent
461028fa7c
commit
f624802df3
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ app = FastAPI(
|
|||
version=conf.version,
|
||||
lifespan=lifespan,
|
||||
default_response_class=responses.ORJSONResponse,
|
||||
docs_url="/api/docs",
|
||||
redoc_url="/api/redoc",
|
||||
)
|
||||
|
||||
app.include_router(api, prefix="/api")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue