feat(api): 添加API文档路由配置
为FastAPI应用添加docs、redoc和openapi.json的路由配置,使用API_PREFIX作为基础路径
This commit is contained in:
@@ -16,7 +16,10 @@ app = FastAPI(
|
||||
title=APP_NAME,
|
||||
description="信息灯板",
|
||||
debug=DEBUG,
|
||||
version=APP_VERSION
|
||||
version=APP_VERSION,
|
||||
docs_url=API_PREFIX + "/docs",
|
||||
redoc_url=API_PREFIX + "/redoc",
|
||||
openapi_url=API_PREFIX + "/openapi.json"
|
||||
)
|
||||
|
||||
app.add_middleware(
|
||||
|
||||
Reference in New Issue
Block a user