feat:新增接口
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""应用入口:四库异步生命周期 + 中间件 + 全局异常 + 路由装配。"""
|
||||
from contextlib import asynccontextmanager
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
|
||||
from api.router import api_router
|
||||
@@ -28,4 +29,7 @@ app.include_router(api_router)
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"message": "智能公募基金系统 API", "docs": "/docs"}
|
||||
return {"message": "智能公募基金系统 API", "docs": "/docs"}
|
||||
|
||||
if __name__ == '__main__':
|
||||
uvicorn.run(app, host="127.0.0.1", port=8001)
|
||||
Reference in New Issue
Block a user