diff --git a/angular.json b/angular.json index 73a2118..846cfbb 100644 --- a/angular.json +++ b/angular.json @@ -28,7 +28,8 @@ "aot": true, "assets": [ "src/favicon.ico", - "src/assets" + "src/assets", + "src/mock" ], "styles": [ "src/styles.sass" diff --git a/src/environments/environment.ts b/src/environments/environment.ts index ed7f067..f4bdec9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - api_url: 'https://api.thecatapi.com/v1/images/search', + api_url: '/mock/responses/thecatapi.com.response.json', period: 2000, }; diff --git a/src/mock/responses/thecatapi.com.response.json b/src/mock/responses/thecatapi.com.response.json new file mode 100644 index 0000000..8de15cd --- /dev/null +++ b/src/mock/responses/thecatapi.com.response.json @@ -0,0 +1,9 @@ +[ + { + "breeds": [], + "id": "ErmyshZhG", + "url": "https://cdn2.thecatapi.com/images/ErmyshZhG.jpg", + "width": 3024, + "height": 4032 + } +]