Gonna get rid of masterList just in case
This commit is contained in:
parent
0b5509b3de
commit
e496095906
8
index.js
8
index.js
|
@ -192,9 +192,10 @@ app.get('/check', (req, res) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/masterList', (req, res) => {
|
// Commented out because it could be abused, not that the serverList API couldnt be abused anyway
|
||||||
res.setHeader("Content-Type", "application/json").send(JSON.stringify(masterList));
|
// app.get('/masterList', (req, res) => {
|
||||||
});
|
// res.setHeader("Content-Type", "application/json").send(JSON.stringify(masterList));
|
||||||
|
// });
|
||||||
|
|
||||||
app.get('/serverList', (req, res) => {
|
app.get('/serverList', (req, res) => {
|
||||||
res.setHeader("Content-Type", "application/json").send(JSON.stringify(serverList));
|
res.setHeader("Content-Type", "application/json").send(JSON.stringify(serverList));
|
||||||
|
@ -205,7 +206,6 @@ app.get('/', (req, res) => {
|
||||||
res.setHeader("Content-Type", "application/json").send(JSON.stringify({
|
res.setHeader("Content-Type", "application/json").send(JSON.stringify({
|
||||||
"endpoints": [
|
"endpoints": [
|
||||||
"/check?address=IP:PORT",
|
"/check?address=IP:PORT",
|
||||||
"/masterList",
|
|
||||||
"/serverList"
|
"/serverList"
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue