feat: update PrestashopService to use dynamic base URL from environment configuration
This commit is contained in:
@@ -4,6 +4,7 @@ import {forkJoin, map, of, switchMap, Observable, catchError} from 'rxjs';
|
||||
import {PsItem} from '../interfaces/ps-item';
|
||||
import {PsProduct} from '../interfaces/ps-product';
|
||||
import {ProductListItem} from '../interfaces/product-list-item';
|
||||
import {environment} from '../../environments/environment';
|
||||
|
||||
type Resource = 'categories' | 'manufacturers' | 'suppliers';
|
||||
|
||||
@@ -36,7 +37,7 @@ const UPDATE_CFG: Record<Resource, {
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class PrestashopService {
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly base = '/ps';
|
||||
private readonly base = environment.psUrl;
|
||||
private readonly frontBase = 'https://shop.gameovergne.fr'
|
||||
|
||||
// -------- Utils
|
||||
|
||||
Reference in New Issue
Block a user