move old docs over

This commit is contained in:
Richard Harris
2019-04-28 21:44:34 -04:00
parent 36f91d4e9a
commit 381af86f04
30 changed files with 816 additions and 198 deletions

View File

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