23 lines
450 B
JavaScript
23 lines
450 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const http = require("http");
|
|
const args = process.argv.slice(2);
|
|
console.log(args);
|
|
console.log(
|
|
`AGENTAPI_CHAT_BASE_PATH=${process.env["AGENTAPI_CHAT_BASE_PATH"]}`,
|
|
);
|
|
const port = 3284;
|
|
|
|
console.log(`starting server on port ${port}`);
|
|
|
|
http
|
|
.createServer(function (_request, response) {
|
|
response.writeHead(200);
|
|
response.end(
|
|
JSON.stringify({
|
|
status: "stable",
|
|
}),
|
|
);
|
|
})
|
|
.listen(port);
|