diff --git a/src/app/products/products.service.ts b/src/app/products/products.service.ts index 7b99d978..42f4115a 100644 --- a/src/app/products/products.service.ts +++ b/src/app/products/products.service.ts @@ -19,7 +19,7 @@ export class ProductsService extends ApiService { return EMPTY; } - const url = this.getUrl('bff', 'products'); + const url = this.getUrl('bff', '/products'); return this.http.post(url, product); } @@ -49,7 +49,7 @@ export class ProductsService extends ApiService { ); } - const url = this.getUrl('bff', `products/${id}`); + const url = this.getUrl('bff', `/products/${id}`); return this.http .get<{ product: Product }>(url) .pipe(map((resp) => resp.product)); @@ -63,7 +63,7 @@ export class ProductsService extends ApiService { return this.http.get('/assets/products.json'); } - const url = this.getUrl('bff', 'products'); + const url = this.getUrl('bff', '/products'); return this.http.get(url); } diff --git a/src/environments/environment.ts b/src/environments/environment.ts index a9a52a5a..78951018 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -10,14 +10,14 @@ export const environment: Config = { 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', + bff: 'https://i4dosagybe.execute-api.us-east-1.amazonaws.com/dev', cart: 'https://.execute-api.eu-west-1.amazonaws.com/dev', }, apiEndpointsEnabled: { product: false, order: false, import: false, - bff: false, + bff: true, cart: false, }, };