@ -1,5 +0,0 @@
from fastapi import FastAPI
app = FastAPI()
@ -0,0 +1,15 @@
def create_app():
# 添加路由
from src.api import index
app.include_router(index.router, prefix="/api/v1", tags=["API首页"])
return app
fast_api_app = create_app()