We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2136a commit 213c841Copy full SHA for 213c841
health-server.js
@@ -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