Merge pull request #270 from matiu/bug/next

rm call to next
This commit is contained in:
Matias Alejo Garcia 2014-12-05 18:26:40 -03:00
commit c9bdd01160

View File

@ -7,16 +7,15 @@ var _getVersion = function() {
return pjson.version; return pjson.version;
}; };
exports.render = function(req, res, next) { exports.render = function(req, res) {
if (config.publicPath) { if (config.publicPath) {
return res.sendfile(config.publicPath + '/index.html', {}, function(err) { return res.sendfile(config.publicPath + '/index.html');
return next(); }
}); else {
var version = _getVersion();
res.send('insight API v' + version);
} }
var version = _getVersion();
res.send('insight API v' + version);
}; };
exports.version = function(req, res) { exports.version = function(req, res) {