moved notFound notAllowed to helpers

This commit is contained in:
barisusakli
2014-11-15 23:22:57 -05:00
parent f8cfd82667
commit 556e7066e8
5 changed files with 53 additions and 44 deletions

View File

@@ -9,6 +9,7 @@ var topicsController = require('./topics'),
staticController = require('./static'),
apiController = require('./api'),
adminController = require('./admin'),
helpers = require('./helpers'),
async = require('async'),
nconf = require('nconf'),
@@ -240,7 +241,7 @@ Controllers.outgoing = function(req, res, next) {
Controllers.termsOfUse = function(req, res, next) {
if (!meta.config.termsOfUse) {
return categoriesController.notFound(req, res);
return helpers.notFound(res);
}
res.render('tos', {termsOfUse: meta.config.termsOfUse});
};