This commit is contained in:
DingZQ
2023-05-02 20:18:05 +08:00
parent 068281b929
commit 9626473b76

View File

@@ -1523,7 +1523,7 @@ async def fastapi_delete_region(network: str, req: Request) -> ChangeSet:
async def fastapi_distribute_demand_to_nodes(network: str, demand: float, nodes: list[str], type: str = DISTRIBUTION_TYPE_ADD) -> ChangeSet:
return distribute_demand_to_nodes(network, demand, nodes, type)
@app.post("distributedemandtoregion")
@app.post("/distributedemandtoregion/")
async def fastapi_distribute_demand_to_region(network: str, demand: float, region: str, type: str = DISTRIBUTION_TYPE_ADD) -> ChangeSet:
return distribute_demand_to_region(network, demand, region, type)