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
@@ -29,7 +29,7 @@ function PreviewTemplateController (
tablesExtentApi,
metadataBackend,
pgConnection,
authApi,
authBackend,
userLimitsApi
) {
this.namedMapProviderCache = namedMapProviderCache;
@@ -38,7 +38,7 @@ function PreviewTemplateController (
this.tablesExtentApi = tablesExtentApi;
this.metadataBackend = metadataBackend;
this.pgConnection = pgConnection;
this.authApi = authApi;
this.authBackend = authBackend;
this.userLimitsApi = userLimitsApi;
}
@@ -48,7 +48,7 @@ PreviewTemplateController.prototype.register = function (mapRouter) {
mapRouter.get(
`/static/named/:template_id/:width/:height.:format`,
credentials(),
authorize(this.authApi),
authorize(this.authBackend),
dbConnSetup(this.pgConnection),
rateLimit(this.userLimitsApi, RATE_LIMIT_ENDPOINTS_GROUPS.STATIC_NAMED),
cleanUpQueryParams(['layer', 'zoom', 'lon', 'lat', 'bbox']),