Skip to content

Commit 213c841

Browse files
authored
Create health-server.js
1 parent 0b2136a commit 213c841

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

health-server.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const http = require("http");
2+
3+
http.createServer((req, res) => {
4+
if (req.url === "/healthz") {
5+
res.writeHead(200);
6+
res.end("ok");
7+
} else {
8+
res.writeHead(404);
9+
res.end();
10+
}
11+
}).listen(3000);

0 commit comments

Comments
 (0)