add version

This commit is contained in:
贺海国
2025-09-24 18:45:55 +08:00
parent 1685ef6148
commit fa7239d954

View File

@@ -20,7 +20,7 @@ app.include_router(items_router, prefix="/api/v1")
@app.get("/")
def read_root():
return {"message": "欢迎使用FastAPI示例应用"}
return {"message": "欢迎使用FastAPI示例应用 v1.1"}
@app.get("/health")
def health_check():