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/")
|
@app.post("/addcurve/")
|
||||||
async def fastapi_add_curve(network: str, curve: str, req: Request) -> ChangeSet:
|
async def fastapi_add_curve(network: str, curve: str, req: Request) -> ChangeSet:
|
||||||
props = await req.json()
|
props = await req.json()
|
||||||
|
|
||||||
|
print(props)
|
||||||
|
|
||||||
ps = {
|
ps = {
|
||||||
'id' : curve,
|
'id' : curve,
|
||||||
} | props
|
} | props
|
||||||
|
|
||||||
|
print(ps)
|
||||||
|
|
||||||
return add_curve(network, ChangeSet(ps))
|
return add_curve(network, ChangeSet(ps))
|
||||||
|
|
||||||
@app.post("/deletecurve/")
|
@app.post("/deletecurve/")
|
||||||
|
|||||||
Reference in New Issue
Block a user