读取本地chatandrole初步成功

This commit is contained in:
2026-03-19 19:31:12 +08:00
parent 4b85b35cf8
commit 91d11abe90
9 changed files with 69 additions and 50 deletions

View File

@@ -1,13 +1,11 @@
from fastapi import FastAPI
from backend.api.route import router
app = FastAPI()
# 注册API路由
app.include_router(router, prefix="/api")
@app.get("/")
async def root():
return {"message": "Hello World"}
@app.get("/hello/{name}")
async def say_hello(name: str):
return {"message": f"Hello {name}"}