diff --git a/barkmanAPI/Program.cs b/barkmanAPI/Program.cs index 58d9dce..658b103 100644 --- a/barkmanAPI/Program.cs +++ b/barkmanAPI/Program.cs @@ -177,7 +177,7 @@ customerGroup.MapGet("/{id}", async (int id, BarkContext db) => if (customer == null) { - return Results.NotFound(new { Message = "Customer item not found" }); + return Results.NotFound(new { Message = "Customer not found" }); } return Results.Ok(customer); diff --git a/barkmanui/src/features/customers/hooks/useCustomerList.tsx b/barkmanui/src/features/customers/hooks/useCustomerList.tsx index 0cbae87..293a3a7 100644 --- a/barkmanui/src/features/customers/hooks/useCustomerList.tsx +++ b/barkmanui/src/features/customers/hooks/useCustomerList.tsx @@ -5,7 +5,7 @@ import {Customer} from "../types.ts"; queryKey: ['customer'], queryFn: async (): Promise => { const response = await fetch( - import.meta.env.VITE_API_URL + '/custmoers', + import.meta.env.VITE_API_URL + '/customers', ) if (!response.ok) throw new Error('Failed to fetch customers ' + response.statusText)