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

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