Spaces:
Paused
Paused
Download server.js from hugh007/openwolf-hermes: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/hugh007/openwolf-hermes/resolve/main/server.js
- Command line
-
hf download hf://spaces/hugh007/openwolf-hermes/server.js
-
curl -L -o server.js https://huggingface.co/spaces/hugh007/openwolf-hermes/resolve/main/server.js
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); | |