remove /status.json endpoint warning
This commit is contained in:
parent
f63d9bba4b
commit
63970a7752
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user