Skip to content

Commit baea34f

Browse files
authored
Merge pull request #2 from voroshkov/task3-update-UI-to-use-aws-lambdas
Task #3 Update UI to use AWS Lambda
2 parents c4abe01 + a5e2a89 commit baea34f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/constants/apiPaths.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const API_PATHS = {
2-
product: "https://.execute-api.eu-west-1.amazonaws.com/dev",
2+
product: "https://7u8vlssv4d.execute-api.us-east-1.amazonaws.com",
33
order: "https://.execute-api.eu-west-1.amazonaws.com/dev",
44
import: "https://.execute-api.eu-west-1.amazonaws.com/dev",
5-
bff: "https://.execute-api.eu-west-1.amazonaws.com/dev",
5+
bff: "https://7u8vlssv4d.execute-api.us-east-1.amazonaws.com",
66
cart: "https://.execute-api.eu-west-1.amazonaws.com/dev",
77
};
88

src/queries/products.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function useAvailableProducts() {
99
"available-products",
1010
async () => {
1111
const res = await axios.get<AvailableProduct[]>(
12-
`${API_PATHS.bff}/product/available`
12+
`${API_PATHS.bff}/products`
1313
);
1414
return res.data;
1515
}

0 commit comments

Comments
 (0)