Skip to content

Commit

Permalink
boilerplate for permissions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Aug 5, 2024
1 parent 635c99c commit 1cb23c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/http/services/owncloud/ocgraph/drives.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,7 @@ func cs3PermissionsToLibreGraph(user *userpb.User, perms *providerpb.ResourcePer
}
return []libregraph.Permission{p}
}

func (s *svc) getDrivePermissions(w http.ResponseWriter, r *http.Request) {

}
3 changes: 3 additions & 0 deletions internal/http/services/owncloud/ocgraph/ocgraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ func (s *svc) initRouter() {
r.Get("/sharedByMe", s.getSharedByMe)
})
r.Get("/roleManagement/permissions/roleDefinitions", s.getRoleDefinitions)
r.Get("/drives/{space-id}/root/permissions", s.getDrivePermissions)
r.Get("/drives/{space-id}/items/{item-id}/permissions", s.getDrivePermissions)
})
// /graph/v1beta1/drives/166d1210-cdb9-50ab-9f1e-ecb9ef12a304%244c510ada-c86b-4815-8820-42cdf82c3d51/items/166d1210-cdb9-50ab-9f1e-ecb9ef12a304%244c510ada-c86b-4815-8820-42cdf82c3d51!4c510ada-c86b-4815-8820-42cdf82c3d51/permissions
}

func (s *svc) getClient() (gateway.GatewayAPIClient, error) {
Expand Down

0 comments on commit 1cb23c7

Please sign in to comment.