Remove req2params from BaseController and update related test to use the middleware
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user