From 33e474759b5328b800f7263413e500c2b0f0b6b1 Mon Sep 17 00:00:00 2001 From: RoiEX Date: Mon, 6 Mar 2017 21:00:20 +0100 Subject: [PATCH] Change var names --- src/controllers/index.js | 2 +- src/controllers/osd.js | 2 +- src/routes/meta.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index a02e3c9fbd..a3b9361651 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -30,9 +30,9 @@ Controllers.admin = require('./admin'); Controllers.globalMods = require('./globalmods'); Controllers.mods = require('./mods'); Controllers.sitemap = require('./sitemap'); +Controllers.osd = require('./osd'); Controllers['404'] = require('./404'); Controllers.errors = require('./errors'); -Controllers.handleOSDRequest = require('./osd'); Controllers.home = function (req, res, next) { var route = meta.config.homePageRoute || (meta.config.homePageCustom || '').replace(/^\/+/, '') || 'categories'; diff --git a/src/controllers/osd.js b/src/controllers/osd.js index 01bb474033..c83f7f142c 100644 --- a/src/controllers/osd.js +++ b/src/controllers/osd.js @@ -6,7 +6,7 @@ var nconf = require('nconf'); var plugins = require('../plugins'); var meta = require('../meta'); -module.exports = function (req, res, next) { +module.exports.handle = function (req, res, next) { if (plugins.hasListeners('filter:search.query')) { res.type('application/xml').send(generateXML()); } else { diff --git a/src/routes/meta.js b/src/routes/meta.js index e17533af05..de0bb52406 100644 --- a/src/routes/meta.js +++ b/src/routes/meta.js @@ -8,5 +8,5 @@ module.exports = function (app, middleware, controllers) { app.get('/robots.txt', controllers.robots); app.get('/manifest.json', controllers.manifest); app.get('/css/previews/:theme', controllers.admin.themes.get); - app.get('/osd.xml', controllers.handleOSDRequest); + app.get('/osd.xml', controllers.osd.handle); };