Gonna get rid of masterList just in case

This commit is contained in:
Christopher Cookman 2022-11-22 14:49:36 -07:00
parent 0b5509b3de
commit e496095906
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -192,9 +192,10 @@ app.get('/check', (req, res) => {
}
});
app.get('/masterList', (req, res) => {
res.setHeader("Content-Type", "application/json").send(JSON.stringify(masterList));
});
// Commented out because it could be abused, not that the serverList API couldnt be abused anyway
// app.get('/masterList', (req, res) => {
// res.setHeader("Content-Type", "application/json").send(JSON.stringify(masterList));
// });
app.get('/serverList', (req, res) => {
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({
"endpoints": [
"/check?address=IP:PORT",
"/masterList",
"/serverList"
]
}));