blob: f4392528472143fc2891a647aac6478bc4bc9875 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
let { getPosts } = require('../api/api')
let posts = getPosts()
posts = posts.map(({ year, month, day, title, route }) => {
return {
date: `${year}-${month}-${day}`,
title,
route
}
})
console.log(posts)
|