Refine
This commit is contained in:
6
main.py
6
main.py
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user