Skip to content

Commit

Permalink
fix: add id path parameter to oauth-apps path (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams authored Oct 14, 2024
1 parent 4f968fb commit 24c5b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gateway/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24c5b76

Please sign in to comment.