Merge branch 'main' of https://github.com/Xargana/blahaj-srv
This commit is contained in:
commit
8766454f35
|
@ -46,7 +46,7 @@ async function checkServers() {
|
||||||
setInterval(checkServers, CHECK_INTERVAL);
|
setInterval(checkServers, CHECK_INTERVAL);
|
||||||
checkServers();
|
checkServers();
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/status", (req, res) => {
|
||||||
res.json(serversStatus);
|
res.json(serversStatus);
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "pm2 start status/server.js --name status-service-api",
|
"start": "pm2 start api/status/server.js --name api_status-server",
|
||||||
"restart": "pm2 restart status-service-api"
|
"restart": "pm2 restart api_status-server"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue