From e496095906ba39ab1675db5852db33163e0c9e9c Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 22 Nov 2022 14:49:36 -0700 Subject: [PATCH] Gonna get rid of masterList just in case --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 232d509..ba025af 100644 --- a/index.js +++ b/index.js @@ -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" ] }));