test(ci): add watch paths phase 4 fixture
This commit is contained in:
11
web/server.js
Normal file
11
web/server.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const http = require("node:http");
|
||||
const { fixtureName } = require("watch-paths-fixture-shared");
|
||||
const server = http.createServer((request, response) => {
|
||||
response.setHeader("Content-Type", "application/json");
|
||||
if (request.url === "/health") {
|
||||
response.writeHead(200).end(JSON.stringify({ status: "ok", service: "web", fixtureName }));
|
||||
return;
|
||||
}
|
||||
response.writeHead(200).end(JSON.stringify({ service: "web", fixtureName }));
|
||||
});
|
||||
server.listen(8080, "0.0.0.0");
|
||||
Reference in New Issue
Block a user