NodeJS master server
npm install
nodejs app.js
GET localhost:4000/
Response:
[
{
guid: "413410239874",
state: "1",
peers: "13",
id: 1,
lastUpdate: 1542200139951
}
]
GET localhost:4000/open
Response:
{
guid: "413410239874",
state: "1",
peers: "13",
id: 1,
lastUpdate: 1542200139951
}
If server list already contains a record with the same GUID, it will be updated
GET localhost:4000/new?guid=123&state=2&peers=3
Server with the same GUID will be deleted
GET localhost:4000/delete?guid=123