From 63970a77528322c1414bc9cd12c2f554084cc0f8 Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Mon, 30 Mar 2020 01:06:50 -0500 Subject: [PATCH] remove /status.json endpoint warning --- lib/server.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/server.js b/lib/server.js index 1d82f2d..3c7603e 100644 --- a/lib/server.js +++ b/lib/server.js @@ -29,16 +29,7 @@ function handleRequest(req, res) { logger.log('info', '%s requested: %s', req.connection.remoteAddress, requestUrl); - if (requestUrl === '/status.json') { - res.setHeader('Content-Type', 'text/plain'); - - res.write(JSON.stringify({ - error: true, - message: 'API deprecated.' - })); - - res.end(); - } else if (requestUrl === '/publicConfig.json') { + if (requestUrl === '/publicConfig.json') { res.setHeader('Content-Type', 'application/javascript'); var publicConfig = {