diff --git a/main.py b/main.py index d4bddec..117ca4e 100644 --- a/main.py +++ b/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)