rm call to next

This commit is contained in:
Matias Alejo Garcia 2014-12-05 18:20:45 -03:00
parent 9b1b2ef38b
commit a9799c0f4e

View File

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