switch to polka, remove unused deps

This commit is contained in:
Rich Harris
2018-03-10 09:39:07 -05:00
parent b1067103a4
commit 1eed1023aa
10 changed files with 13 additions and 5996 deletions

View File

@@ -8,7 +8,7 @@ const contents = JSON.stringify(posts.map(post => {
}));
export function get(req, res) {
res.set({
res.writeHead(200, {
'Content-Type': 'application/json',
'Cache-Control': `max-age=${30 * 60 * 1e3}` // cache for 30 minutes
});