call methods directly

v1.18.x
barisusakli 8 years ago
parent 3e396a8553
commit 566ff95d3c

@ -23,15 +23,11 @@ sitemapController.render = function (req, res, next) {
}; };
sitemapController.getPages = function (req, res, next) { sitemapController.getPages = function (req, res, next) {
sendSitemap(function (callback) { sendSitemap(sitemap.getPages, res, next);
sitemap.getPages(callback);
}, res, next);
}; };
sitemapController.getCategories = function (req, res, next) { sitemapController.getCategories = function (req, res, next) {
sendSitemap(function (callback) { sendSitemap(sitemap.getCategories, res, next);
sitemap.getCategories(callback);
}, res, next);
}; };
sitemapController.getTopicPage = function (req, res, next) { sitemapController.getTopicPage = function (req, res, next) {

Loading…
Cancel
Save