Rename AuthAppi by AuthBackend

This commit is contained in:
Daniel García Aubert
2018-04-09 18:08:56 +02:00
parent 6167562758
commit 8dec4814a9
17 changed files with 75 additions and 75 deletions
@@ -8,9 +8,9 @@ const { RATE_LIMIT_ENDPOINTS_GROUPS } = rateLimit;
const cacheControlHeader = require('../middlewares/cache-control-header');
const dbParamsFromResLocals = require('../../utils/database-params');
function AnalysesController(pgConnection, authApi, userLimitsApi) {
function AnalysesController(pgConnection, authBackend, userLimitsApi) {
this.pgConnection = pgConnection;
this.authApi = authApi;
this.authBackend = authBackend;
this.userLimitsApi = userLimitsApi;
}
@@ -20,7 +20,7 @@ AnalysesController.prototype.register = function (mapRouter) {
mapRouter.get(
`/analyses/catalog`,
credentials(),
authorize(this.authApi),
authorize(this.authBackend),
dbConnSetup(this.pgConnection),
rateLimit(this.userLimitsApi, RATE_LIMIT_ENDPOINTS_GROUPS.ANALYSIS_CATALOG),
cleanUpQueryParams(),