mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
call methods directly
This commit is contained in:
@@ -23,15 +23,11 @@ sitemapController.render = function (req, res, next) {
|
||||
};
|
||||
|
||||
sitemapController.getPages = function (req, res, next) {
|
||||
sendSitemap(function (callback) {
|
||||
sitemap.getPages(callback);
|
||||
}, res, next);
|
||||
sendSitemap(sitemap.getPages, res, next);
|
||||
};
|
||||
|
||||
sitemapController.getCategories = function (req, res, next) {
|
||||
sendSitemap(function (callback) {
|
||||
sitemap.getCategories(callback);
|
||||
}, res, next);
|
||||
sendSitemap(sitemap.getCategories, res, next);
|
||||
};
|
||||
|
||||
sitemapController.getTopicPage = function (req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user