Merge branch 'master' into spread_routes

This commit is contained in:
Rich Harris
2019-04-27 11:16:18 -04:00
committed by GitHub
13 changed files with 172 additions and 64 deletions

View File

@@ -0,0 +1,8 @@
export function get(req, res, next) {
if (req.headers.accept === 'application/json') {
res.end('{"json":true}');
return;
}
next();
}

View File

@@ -0,0 +1 @@
<h1>HTML</h1>