From 0e267e459089211f63f8a5fa8dc53ba437eef48a Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 8 Nov 2023 14:31:37 +0100 Subject: [PATCH] Make v1beta1/roleManagement/permissions/roleDefinitions/ beta To align with the current spec. --- services/graph/pkg/service/v0/service.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/graph/pkg/service/v0/service.go b/services/graph/pkg/service/v0/service.go index b00f55834ea..89e007e22a9 100644 --- a/services/graph/pkg/service/v0/service.go +++ b/services/graph/pkg/service/v0/service.go @@ -202,6 +202,10 @@ func NewService(opts ...Option) (Graph, error) { r.Use(middleware.StripSlashes) r.Route("/v1beta1", func(r chi.Router) { r.Get("/me/drive/sharedByMe", svc.GetSharedByMe) + r.Route("/roleManagement/permissions/roleDefinitions", func(r chi.Router) { + r.Get("/", svc.GetRoleDefinitions) + r.Get("/{roleID}", svc.GetRoleDefinition) + }) }) r.Route("/v1.0", func(r chi.Router) { r.Route("/extensions/org.libregraph", func(r chi.Router) { @@ -316,10 +320,6 @@ func NewService(opts ...Option) (Graph, error) { }) }) }) - r.Route("/roleManagement/permissions/roleDefinitions", func(r chi.Router) { - r.Get("/", svc.GetRoleDefinitions) - r.Get("/{roleID}", svc.GetRoleDefinition) - }) }) })