Refactor to meta url.

This commit is contained in:
Spencer Ofwiti 2021-04-28 17:31:36 +03:00
parent 292b64c1e0
commit ce26380e84
2 changed files with 6 additions and 6 deletions

View File

@ -14,18 +14,18 @@ export class LocationService {
) { }
getAreaNames(): Observable<any> {
return this.httpClient.get(`${environment.cicCacheUrl}/areanames`);
return this.httpClient.get(`${environment.cicMetaUrl}/areanames`);
}
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> {
return this.httpClient.get(`${environment.cicCacheUrl}/areatypes`).pipe(first());
return this.httpClient.get(`${environment.cicMetaUrl}/areatypes`).pipe(first());
}
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());
}
}

View File

@ -203,10 +203,10 @@ export class UserService {
searchAccountByName(name: string): any { return; }
getCategories(): Observable<any> {
return this.httpClient.get(`${environment.cicCacheUrl}/categories`);
return this.httpClient.get(`${environment.cicMetaUrl}/categories`);
}
getCategoryByProduct(product: string): Observable<any> {
return this.httpClient.get(`${environment.cicCacheUrl}/categories/${product.toLowerCase()}`);
return this.httpClient.get(`${environment.cicMetaUrl}/categories/${product.toLowerCase()}`);
}
}