Commit 209c564a by root

更改了main.py中的路由装饰器,将/app.get("/type_1/")改为/app.post("/type_1/")。

parent 24c04197
......@@ -9,7 +9,7 @@ async def root():
return {"message": "Hello World"}
@app.get("/type_1/")
@app.post("/type_1/")
async def type_1(req: dict = Body()):
print(req)
return "success"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment