Update source
This commit is contained in:
4
main.py
4
main.py
@@ -1088,8 +1088,8 @@ async def fastapi_add_source(network: str, req: Request) -> ChangeSet:
|
||||
return add_source(network, ChangeSet(props))
|
||||
|
||||
@app.post('/deletesource/')
|
||||
async def fastapi_delete_source(network: str, req: Request) -> ChangeSet:
|
||||
props = await req.json()
|
||||
async def fastapi_delete_source(network: str, node: str) -> ChangeSet:
|
||||
props = { 'node': node }
|
||||
return delete_source(network, ChangeSet(props))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user