diff --git "a/screenshots/Screenshot 2025-10-05 at 12.14.43\342\200\257PM.png" "b/screenshots/Screenshot 2025-10-05 at 12.14.43\342\200\257PM.png" new file mode 100644 index 000000000..c7fb39cc0 Binary files /dev/null and "b/screenshots/Screenshot 2025-10-05 at 12.14.43\342\200\257PM.png" differ diff --git "a/screenshots/Screenshot 2025-10-05 at 12.31.43\342\200\257PM.png" "b/screenshots/Screenshot 2025-10-05 at 12.31.43\342\200\257PM.png" new file mode 100644 index 000000000..4dab4e65e Binary files /dev/null and "b/screenshots/Screenshot 2025-10-05 at 12.31.43\342\200\257PM.png" differ diff --git a/src/components/pages/PageProductForm/PageProductForm.tsx b/src/components/pages/PageProductForm/PageProductForm.tsx index 845ba9805..5fd8a4756 100755 --- a/src/components/pages/PageProductForm/PageProductForm.tsx +++ b/src/components/pages/PageProductForm/PageProductForm.tsx @@ -68,8 +68,8 @@ export default function PageProductForm() { diff --git a/src/constants/apiPaths.ts b/src/constants/apiPaths.ts index 6846a7534..0c65fc939 100755 --- a/src/constants/apiPaths.ts +++ b/src/constants/apiPaths.ts @@ -1,9 +1,9 @@ const API_PATHS = { - product: "https://.execute-api.eu-west-1.amazonaws.com/dev", - order: "https://.execute-api.eu-west-1.amazonaws.com/dev", - import: "https://.execute-api.eu-west-1.amazonaws.com/dev", - bff: "https://.execute-api.eu-west-1.amazonaws.com/dev", - cart: "https://.execute-api.eu-west-1.amazonaws.com/dev", + product: "https://ctnh34h9da.execute-api.us-east-1.amazonaws.com/prod", + order: "https://ctnh34h9da.execute-api.us-east-1.amazonaws.com/prod", + import: "https://v5bbmpto4e.execute-api.us-east-1.amazonaws.com/prod", + bff: "https://ctnh34h9da.execute-api.us-east-1.amazonaws.com/prod", + cart: "https://ctnh34h9da.execute-api.us-east-1.amazonaws.com/prod", }; export default API_PATHS; diff --git a/src/queries/products.ts b/src/queries/products.ts index 090a803f3..98a1a83ae 100644 --- a/src/queries/products.ts +++ b/src/queries/products.ts @@ -9,7 +9,7 @@ export function useAvailableProducts() { "available-products", async () => { const res = await axios.get( - `${API_PATHS.bff}/product/available` + `${API_PATHS.bff}/products/` ); return res.data; } @@ -29,7 +29,7 @@ export function useAvailableProduct(id?: string) { ["product", { id }], async () => { const res = await axios.get( - `${API_PATHS.bff}/product/${id}` + `${API_PATHS.bff}/products/${id}` ); return res.data; }, @@ -48,7 +48,7 @@ export function useRemoveProductCache() { export function useUpsertAvailableProduct() { return useMutation((values: AvailableProduct) => - axios.put(`${API_PATHS.bff}/product`, values, { + axios.post(`${API_PATHS.bff}/product`, values, { headers: { Authorization: `Basic ${localStorage.getItem("authorization_token")}`, },