Refactor to meta url.
This commit is contained in:
parent
292b64c1e0
commit
ce26380e84
@ -14,18 +14,18 @@ export class LocationService {
|
|||||||
) { }
|
) { }
|
||||||
|
|
||||||
getAreaNames(): Observable<any> {
|
getAreaNames(): Observable<any> {
|
||||||
return this.httpClient.get(`${environment.cicCacheUrl}/areanames`);
|
return this.httpClient.get(`${environment.cicMetaUrl}/areanames`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAreaNameByLocation(location: string): Observable<any> {
|
getAreaNameByLocation(location: string): Observable<any> {
|
||||||
return this.httpClient.get(`${environment.cicCacheUrl}/areanames/${location.toLowerCase()}`);
|
return this.httpClient.get(`${environment.cicMetaUrl}/areanames/${location.toLowerCase()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAreaTypes(): Observable<any> {
|
getAreaTypes(): Observable<any> {
|
||||||
return this.httpClient.get(`${environment.cicCacheUrl}/areatypes`).pipe(first());
|
return this.httpClient.get(`${environment.cicMetaUrl}/areatypes`).pipe(first());
|
||||||
}
|
}
|
||||||
|
|
||||||
getAreaTypeByArea(area: string): Observable<any> {
|
getAreaTypeByArea(area: string): Observable<any> {
|
||||||
return this.httpClient.get(`${environment.cicCacheUrl}/areatypes/${area.toLowerCase()}`).pipe(first());
|
return this.httpClient.get(`${environment.cicMetaUrl}/areatypes/${area.toLowerCase()}`).pipe(first());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -203,10 +203,10 @@ export class UserService {
|
|||||||
searchAccountByName(name: string): any { return; }
|
searchAccountByName(name: string): any { return; }
|
||||||
|
|
||||||
getCategories(): Observable<any> {
|
getCategories(): Observable<any> {
|
||||||
return this.httpClient.get(`${environment.cicCacheUrl}/categories`);
|
return this.httpClient.get(`${environment.cicMetaUrl}/categories`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getCategoryByProduct(product: string): Observable<any> {
|
getCategoryByProduct(product: string): Observable<any> {
|
||||||
return this.httpClient.get(`${environment.cicCacheUrl}/categories/${product.toLowerCase()}`);
|
return this.httpClient.get(`${environment.cicMetaUrl}/categories/${product.toLowerCase()}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user