feat: enable swagger ui at /api/docs
This commit is contained in:
@@ -28,7 +28,10 @@ app = FastAPI(
|
|||||||
title=settings.APP_NAME,
|
title=settings.APP_NAME,
|
||||||
version=settings.APP_VERSION,
|
version=settings.APP_VERSION,
|
||||||
description="Automated Bacillus thuringiensis toxin mining pipeline",
|
description="Automated Bacillus thuringiensis toxin mining pipeline",
|
||||||
lifespan=lifespan
|
lifespan=lifespan,
|
||||||
|
docs_url="/api/docs",
|
||||||
|
redoc_url="/api/redoc",
|
||||||
|
openapi_url="/api/openapi.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
# CORS
|
# CORS
|
||||||
|
|||||||
Reference in New Issue
Block a user