about summary refs log tree commit diff
path: root/api/index.js
blob: 7843302fcfafb259b026062ddb862545cf1143f7 (plain)
1
2
3
4
5
6
7
8
9
10
export const apiUrl = 'https://puszcza.netlify.com/api'

export const parsePosts = (posts) =>
  posts.map((post) => ({
    title: post.title,
    image: post.image,
    description: post.description,
    route: post.path,
    meta: post.meta,
  }))