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