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
@@ -28,7 +28,7 @@ module.exports = class TileLayergroupController {
mapStore,
userLimitsApi,
layergroupAffectedTablesCache,
authApi,
authBackend,
surrogateKeysCache
) {
this.tileBackend = tileBackend;
@@ -36,7 +36,7 @@ module.exports = class TileLayergroupController {
this.mapStore = mapStore;
this.userLimitsApi = userLimitsApi;
this.layergroupAffectedTablesCache = layergroupAffectedTablesCache;
this.authApi = authApi;
this.authBackend = authBackend;
this.surrogateKeysCache = surrogateKeysCache;
}
@@ -50,7 +50,7 @@ module.exports = class TileLayergroupController {
`/:token/:z${number()}/:x${number()}/:y${number()}@:scale_factor${number()}?x.:format`,
layergroupToken(),
credentials(),
authorize(this.authApi),
authorize(this.authBackend),
dbConnSetup(this.pgConnection),
rateLimit(this.userLimitsApi, RATE_LIMIT_ENDPOINTS_GROUPS.TILE),
cleanUpQueryParams(),
@@ -75,7 +75,7 @@ module.exports = class TileLayergroupController {
`/:token/:z${number()}/:x${number()}/:y${number()}.:format`,
layergroupToken(),
credentials(),
authorize(this.authApi),
authorize(this.authBackend),
dbConnSetup(this.pgConnection),
rateLimit(this.userLimitsApi, RATE_LIMIT_ENDPOINTS_GROUPS.TILE),
cleanUpQueryParams(),
@@ -100,7 +100,7 @@ module.exports = class TileLayergroupController {
`/:token${not('static')}/:layer/:z${number()}/:x${number()}/:y${number()}.(:format)`,
layergroupToken(),
credentials(),
authorize(this.authApi),
authorize(this.authBackend),
dbConnSetup(this.pgConnection),
rateLimit(this.userLimitsApi, RATE_LIMIT_ENDPOINTS_GROUPS.TILE),
cleanUpQueryParams(),