This commit is contained in:
DingZQ
2023-04-18 23:31:43 +08:00
parent 6eb4b34de0
commit 3808d72e32

View File

@@ -1043,9 +1043,15 @@ async def fastapi_get_curve_schema(network: str) -> dict[str, dict[str, Any]]:
@app.post("/addcurve/")
async def fastapi_add_curve(network: str, curve: str, req: Request) -> ChangeSet:
props = await req.json()
print(props)
ps = {
'id' : curve,
} | props
print(ps)
return add_curve(network, ChangeSet(ps))
@app.post("/deletecurve/")