From c01060ccf7005421b502979b99543a443789d690 Mon Sep 17 00:00:00 2001 From: Vibhu Pandey Date: Tue, 19 Nov 2024 18:13:25 +0530 Subject: [PATCH] feat(key): enable edit access for gateway (#6480) --- ee/query-service/app/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/query-service/app/api/api.go b/ee/query-service/app/api/api.go index 4291b3f488..e8d836869d 100644 --- a/ee/query-service/app/api/api.go +++ b/ee/query-service/app/api/api.go @@ -197,7 +197,7 @@ func (ah *APIHandler) RegisterRoutes(router *mux.Router, am *baseapp.AuthMiddlew router.HandleFunc("/api/v4/query_range", am.ViewAccess(ah.queryRangeV4)).Methods(http.MethodPost) // Gateway - router.PathPrefix(gateway.RoutePrefix).HandlerFunc(am.AdminAccess(ah.ServeGatewayHTTP)) + router.PathPrefix(gateway.RoutePrefix).HandlerFunc(am.EditAccess(ah.ServeGatewayHTTP)) ah.APIHandler.RegisterRoutes(router, am)