openwolf-hermes / server.js
hugh007's picture
Upload server.js with huggingface_hub
23614c6 verified
raw
history blame contribute delete
336 Bytes
const http = require("http");
http.createServer((req, res) => {
if (req.url === "/health") {
res.writeHead(200, {"Content-Type":"application/json"});
res.end(JSON.stringify({ok:true,uptime:process.uptime()}));
} else {
res.writeHead(200, {"Content-Type":"text/plain"});
res.end("OK");
}
}).listen(7861);