cache data

This commit is contained in:
2020-09-28 14:40:04 +02:00
parent 0306a0cbbf
commit b3446c6048
10 changed files with 29 additions and 55 deletions

View File

@@ -49,3 +49,8 @@ export function sortByAndMapDate(data, format = 'MMM YY') {
date: dj(work.date * 1000).format(format),
}))
}
export function respond(res, body) {
res.setHeader('Content-Type', 'application/json')
res.end(JSON.stringify(body))
}