Create health-server.js

This commit is contained in:
AliVSCode 2026-01-07 21:35:30 +03:30 committed by GitHub
parent 0b2136af8d
commit 213c841b3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

11
health-server.js Normal file
View File

@ -0,0 +1,11 @@
const http = require("http");
http.createServer((req, res) => {
if (req.url === "/healthz") {
res.writeHead(200);
res.end("ok");
} else {
res.writeHead(404);
res.end();
}
}).listen(3000);