WIP: stage all uncommitted work — sprints 46-221, graduation headers, specialist fleet, test steps 909-1988
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
16
example_projects/node_api_gateway/src/server.js
Normal file
16
example_projects/node_api_gateway/src/server.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const http = require("http");
|
||||
|
||||
function health() {
|
||||
return { ok: true, service: "gateway" };
|
||||
}
|
||||
|
||||
const server = http.createServer((_req, res) => {
|
||||
res.writeHead(200, { "Content-Type": "application/json" });
|
||||
res.end(JSON.stringify(health()));
|
||||
});
|
||||
|
||||
if (require.main === module) {
|
||||
server.listen(8080);
|
||||
}
|
||||
|
||||
module.exports = { health };
|
||||
Reference in New Issue
Block a user