feat: add template upload endpoint

This commit is contained in:
zwt13703
2026-07-01 20:27:15 +08:00
parent beec8cf5bb
commit 95c507536a
6 changed files with 82 additions and 15 deletions
+4
View File
@@ -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():