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);
|
logger.log('info', '%s requested: %s', req.connection.remoteAddress, requestUrl);
|
||||||
|
|
||||||
if (requestUrl === '/status.json') {
|
if (requestUrl === '/publicConfig.json') {
|
||||||
res.setHeader('Content-Type', 'text/plain');
|
|
||||||
|
|
||||||
res.write(JSON.stringify({
|
|
||||||
error: true,
|
|
||||||
message: 'API deprecated.'
|
|
||||||
}));
|
|
||||||
|
|
||||||
res.end();
|
|
||||||
} else if (requestUrl === '/publicConfig.json') {
|
|
||||||
res.setHeader('Content-Type', 'application/javascript');
|
res.setHeader('Content-Type', 'application/javascript');
|
||||||
|
|
||||||
var publicConfig = {
|
var publicConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user