getACL() => getAC()
@@ -251,7 +251,7 @@ func NewServerConfiguration(
// setACHandlerFn individual wrap for access_control configuration per endpoint
setACHandlerFn := func(protectedHandler http.Handler) {
- accessControl := getACL(srvConf, parentAPI)
+ accessControl := getAC(srvConf, parentAPI)
if parentAPI != nil && parentAPI.CatchAllEndpoint == endpointConf {
protectedHandler = errTpl.ServeError(errors.APIRouteNotFound)
@@ -663,7 +663,7 @@ func newEndpointMap(srvConf *config.Server, serverOptions *server.Options) (endp
}
}
- if isAPIBasePathUniqueToFilesAndSPA && len(getACL(srvConf, api).List()) > 0 {
+ if isAPIBasePathUniqueToFilesAndSPA && len(getAC(srvConf, api).List()) > 0 {
endpoints[api.CatchAllEndpoint] = api
}
}
@@ -694,7 +694,7 @@ func parseBodyLimit(limit string) (int64, error) {
return units.FromHumanSize(requestBodyLimit)
}
-func getACL(srvConf *config.Server, api *config.API) config.AccessControl {
+func getAC(srvConf *config.Server, api *config.API) config.AccessControl {
ac := config.NewAccessControl(srvConf.AccessControl, srvConf.DisableAccessControl)
if api != nil {
