remove /status.json endpoint warning

This commit is contained in:
Nick Krecklow 2020-03-30 01:06:50 -05:00
parent f63d9bba4b
commit 63970a7752
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94

@ -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 = {