add version
This commit is contained in:
@@ -20,7 +20,7 @@ app.include_router(items_router, prefix="/api/v1")
|
|||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
def read_root():
|
def read_root():
|
||||||
return {"message": "欢迎使用FastAPI示例应用"}
|
return {"message": "欢迎使用FastAPI示例应用 v1.1"}
|
||||||
|
|
||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
def health_check():
|
def health_check():
|
||||||
|
|||||||
Reference in New Issue
Block a user