Skip to content

Commit

Permalink
Merge pull request Mteheran#62 from Mteheran/develop
Browse files Browse the repository at this point in the history
fixing error in route deparments by region
  • Loading branch information
Mteheran committed May 4, 2023
2 parents b2ccfaa + 8b3fd85 commit b981f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Routes/RegionRoutes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void RegisterRegionAPI(WebApplication app)
summary: RegionEndpoint.MESSAGE_REGION_BYID_SUMMARY,
description: RegionEndpoint.MESSAGE_REGION_BYID_DESCRIPTION));

app.MapGet($"{API_REGION_ROUTE_COMPLETE}/{{id}}/deparments", async (int id, DBContext db) =>
app.MapGet($"{API_REGION_ROUTE_COMPLETE}/{{id}}/departments", async (int id, DBContext db) =>
{
if (id <= 0)
{
Expand Down

0 comments on commit b981f33

Please sign in to comment.