Remove req2params from BaseController and update related test to use the middleware

This commit is contained in:
Daniel García Aubert
2017-09-22 01:08:46 +02:00
parent 8139cdf8b2
commit 9bd862ffaf
2 changed files with 9 additions and 20 deletions
-11
View File
@@ -7,17 +7,6 @@ function BaseController(authApi, pgConnection) {
module.exports = BaseController;
// jshint maxcomplexity:10
/**
* Whitelist input and get database name & default geometry type from
* subdomain/user metadata held in CartoDB Redis
* @param req - standard express request obj. Should have host & table
* @param callback
*/
BaseController.prototype.req2params = function(req, res, next) {
this.req2paramsMiddleware(req, res, next);
};
// jshint maxcomplexity:6
// jshint maxcomplexity:9