This commit is contained in:
barisusakli
2014-11-14 12:17:24 -05:00
parent 95e3c6f8a4
commit a1624013f8
2 changed files with 11 additions and 3 deletions

View File

@@ -237,4 +237,11 @@ Controllers.outgoing = function(req, res, next) {
}
};
Controllers.termsOfUse = function(req, res, next) {
if (!meta.config.termsOfUse) {
return categoriesController.notFound(req, res);
}
res.render('tos', {termsOfUse: meta.config.termsOfUse});
};
module.exports = Controllers;