mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2025-09-06 02:30:45 +00:00
cache data
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user