diff --git a/fuse-starter-v20.0.0/src/app/modules/admin/dashboard/products/product.service.ts b/fuse-starter-v20.0.0/src/app/modules/admin/dashboard/products/product.service.ts index 2b17655..4152fd1 100644 --- a/fuse-starter-v20.0.0/src/app/modules/admin/dashboard/products/product.service.ts +++ b/fuse-starter-v20.0.0/src/app/modules/admin/dashboard/products/product.service.ts @@ -1,6 +1,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; +import { environment } from '@environments/environment'; export interface Product { id?: number; // Add this - the numeric primary key from backend @@ -16,7 +17,7 @@ export interface Product { providedIn: 'root' }) export class ProductService { - private apiUrl = 'http://127.0.0.1:5000/products'; // Replace with your actual API URL + private apiUrl = `${environment.apiUrl}/products`; // Replace with your actual API URL constructor(private http: HttpClient) {} diff --git a/fuse-starter-v20.0.0/src/index.html b/fuse-starter-v20.0.0/src/index.html index b4ed12b..03468f6 100644 --- a/fuse-starter-v20.0.0/src/index.html +++ b/fuse-starter-v20.0.0/src/index.html @@ -22,10 +22,9 @@ - + + + diff --git a/machine-operations/src/environments/environment.ts b/machine-operations/src/environments/environment.ts index 21d2575..918242e 100644 --- a/machine-operations/src/environments/environment.ts +++ b/machine-operations/src/environments/environment.ts @@ -1,6 +1,6 @@ // src/environments/environment.ts export const environment = { production: false, - apiUrl: 'http://localhost:5001', // Points to existing app's backend + apiUrl: 'https://microbackend.rootxwire.com/', // Points to existing app's backend payuUrl: 'https://test.payu.in/_payment' }; \ No newline at end of file