mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 13:55:21 +00:00
switch to polka, remove unused deps
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user