From a46cabb3ed27fc099f0eb68c4b073fea6615e822 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 29 Jan 2020 10:37:58 +0100 Subject: Test headers --- components/Posts/PostList/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/Posts/PostList/index.js') diff --git a/components/Posts/PostList/index.js b/components/Posts/PostList/index.js index 844f562..2b8ad92 100644 --- a/components/Posts/PostList/index.js +++ b/components/Posts/PostList/index.js @@ -4,7 +4,9 @@ import k from '~/api' import PostList from './PostList' export const getPosts = async () => { - let posts = await axios.get(`https://puszcza.netlify.com/api/posts.json`) + let posts = await axios.get( + `https://feature-json-api--puszcza.netlify.com/api/posts.json` + ) return parsePosts(posts.data) } -- cgit 1.4.1