shuffle things around

This commit is contained in:
Rich Harris
2019-04-29 11:04:40 -04:00
parent 54abed7d6e
commit 15924d9768
4 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import send from '@polka/send';
import generate_docs from '../../utils/generate_docs.js';
let json;
export function get(req, res) {
if (!json || process.env.NODE_ENV !== 'production') {
json = JSON.stringify(generate_docs('migrating')); // TODO it errors if I send the non-stringified value
}
send(res, 200, json, {
'Content-Type': 'application/json'
});
}