This commit is contained in:
DingZQ
2023-04-18 23:29:40 +08:00
parent 83b7177612
commit 6eb4b34de0

View File

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