aboutsummaryrefslogtreecommitdiff
path: root/modules/head.js
blob: 39a81b42ce987176c825236943e511d1813087ff (plain)
1
2
3
4
5
6
7
8
9
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();
}