diff --git a/src/app/services/http.service.ts b/src/app/services/http.service.ts index b921849..660cd41 100644 --- a/src/app/services/http.service.ts +++ b/src/app/services/http.service.ts @@ -12,8 +12,9 @@ export class HttpService { } getCasesData() { - return this.http.get('/regions') + return this.http.get('https://cdn.pravda.com/cdn/covid-19/ukraine.json') .pipe(map((res: any) => { + console.log(res); const regions = res.regions.regions; const kyivRegion = regions[regions.findIndex(region => region.name === 'kiev')]; const kyivCity = regions[regions.findIndex(region => region.name === 'kievcity')];