const body = require("body/json"); const crypto = require('crypto'); const fs = require('fs'); module.exports = (req, res, entry, dbid) => { res.writeHead(200, {'Content-Type':'application/json'}); res.write(JSON.stringify(heads[entry]) ?? "{}"); res.end(); }