From 7b9f627bf73e915ae73ea0aff476297643b5c37d Mon Sep 17 00:00:00 2001 From: andreyfoggy Date: Wed, 1 Apr 2020 12:42:04 +0300 Subject: [PATCH] test api --- src/app/services/http.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')];