switch to polka

This commit is contained in:
Rich Harris
2018-03-11 19:42:12 -04:00
parent 8989b1a5f6
commit 6abeb06d7d
4 changed files with 11 additions and 20 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'
});

View File

@@ -11,7 +11,7 @@ export function get(req, res, next) {
const { slug } = req.params;
if (lookup.has(slug)) {
res.set({
res.writeHead(200, {
'Content-Type': 'application/json'
});