()
| 9 | } |
| 10 | |
| 11 | export const fetchPosts = async () => { |
| 12 | console.info('Fetching posts...') |
| 13 | return axios.get(`${queryURL}/posts`).then((r) => r.data.slice(0, 10)) |
| 14 | } |
| 15 | |
| 16 | export const fetchPost = async (postId) => { |
| 17 | console.info(`Fetching post with id ${postId}...`) |