Refine http method

This commit is contained in:
DingZQ
2022-09-15 14:16:48 +08:00
parent 679e50354f
commit f7f1d9c0f3

View File

@@ -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)