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