update
This commit is contained in:
1 parent
baa8b9913d
commit
b1511d5888
1 file changed
+2
-2
+2
-2
@@ -19,7 +19,7 @@ async def test():
|
||||
# 在这里添加你的test函数逻辑
|
||||
return {"message": "test function executed"}
|
||||
|
||||
@app.get("/api/router")
|
||||
@app.all("/api/router")
|
||||
async def router(path: str = Query(...)):
|
||||
"""路由处理器"""
|
||||
try:
|
||||
@@ -36,7 +36,7 @@ async def router(path: str = Query(...)):
|
||||
except Exception as e:
|
||||
return {"success": False, "error": str(e)}
|
||||
|
||||
@app.get("/")
|
||||
@app.all("/")
|
||||
async def root():
|
||||
"""健康检查端点"""
|
||||
return {"message": "FastAPI server is running"}
|
||||
|
||||
Reference in new issue
Block a user