From 24c5b767d95ab9d4d46a695de6a31b079881c090 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Mon, 14 Oct 2024 09:31:19 -0400 Subject: [PATCH] fix: add id path parameter to oauth-apps path (#176) Signed-off-by: Donnie Adams --- pkg/gateway/server/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gateway/server/routes.go b/pkg/gateway/server/routes.go index 8a9a8b121..836efe8a3 100644 --- a/pkg/gateway/server/routes.go +++ b/pkg/gateway/server/routes.go @@ -71,7 +71,7 @@ func (s *Server) AddRoutes(w func(api.HandlerFunc) http.Handler, mux *http.Serve mux.Handle("GET /oauth-apps", wrap(s.authFunc(types2.RoleBasic)(s.listOAuthApps))) mux.Handle("GET /oauth-apps/{id}", wrap(s.authFunc(types2.RoleBasic)(s.oauthAppByID))) mux.Handle("POST /oauth-apps", wrap(s.authFunc(types2.RoleAdmin)(s.createOAuthApp))) - mux.Handle("PATCH /oauth-apps", wrap(s.authFunc(types2.RoleAdmin)(s.updateOAuthApp))) + mux.Handle("PATCH /oauth-apps/{id}", wrap(s.authFunc(types2.RoleAdmin)(s.updateOAuthApp))) mux.Handle("DELETE /oauth-apps/{id}", wrap(s.authFunc(types2.RoleAdmin)(s.deleteOAuthApp))) // Routes for OAuth authorization code flow