rm call to next
This commit is contained in:
parent
9b1b2ef38b
commit
a9799c0f4e
@ -10,13 +10,12 @@ var _getVersion = function() {
|
|||||||
exports.render = function(req, res, next) {
|
exports.render = function(req, res, next) {
|
||||||
|
|
||||||
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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user