mirror of
https://github.com/coder/code-server.git
synced 2026-02-19 18:01:15 +08:00
12 lines
211 B
JavaScript
12 lines
211 B
JavaScript
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);
|