feat: add template upload endpoint
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from .api.templates import router as templates_router
|
||||
|
||||
app = FastAPI(title="AI 文档模板生成系统", version="0.1.0")
|
||||
|
||||
app.add_middleware(
|
||||
@@ -11,6 +13,8 @@ app.add_middleware(
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
app.include_router(templates_router)
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
|
||||
Reference in New Issue
Block a user