fixed typos

This commit is contained in:
2026-07-17 12:06:03 -05:00
parent 161a73cbb7
commit 3b07318e34
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
@@ -5,7 +5,7 @@ import {Customer} from "../types.ts";
queryKey: ['customer'],
queryFn: async (): Promise<Customer[]> => {
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)