This commit is contained in:
barisusakli
2016-08-19 17:50:03 +03:00
parent d5b8b1da56
commit 409621c661
3 changed files with 46 additions and 37 deletions

View File

@@ -339,6 +339,10 @@ Controllers.termsOfUse = function(req, res, next) {
res.render('tos', {termsOfUse: meta.config.termsOfUse});
};
Controllers.ping = function(req, res) {
res.status(200).send(req.path === '/sping' ? 'healthy' : '200');
};
Controllers.handle404 = function(req, res) {
var relativePath = nconf.get('relative_path');
var isLanguage = new RegExp('^' + relativePath + '/language/.*/.*.json');