Refine http method
This commit is contained in:
2
main.py
2
main.py
@@ -80,7 +80,7 @@ async def fastapi_get_nodes(network: str) -> list[str]:
|
||||
async def fastapi_add_junction(network: str, junction: str, x: float, y: float, z: float) -> ChangeSet:
|
||||
return add_junction(network, junction, x, y, z)
|
||||
|
||||
@app.delete("/deletejunction/")
|
||||
@app.post("/deletejunction/")
|
||||
def fastapi_delete_junction(network: str, junction: str) -> ChangeSet:
|
||||
return delete_junction(network, junction)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user