const body = require("body/json"); const crypto = require('crypto'); const fs = require('fs'); const os = require("os"); module.exports = (req, res, entry, dbid) => { res.writeHead(200, {'Content-Type':'application/json'}); res.write(JSON.stringify({ error: 200, ...process.versions, pawerdb: variables.version, os: os.type() + " " + os.arch() + " " + os.release(), user: os.userInfo() })); res.end(); }