Skip to content

Commit

Permalink
Merge pull request #22 from grahamc/path-list-roles-support
Browse files Browse the repository at this point in the history
backend: add pathListRoles support
  • Loading branch information
t0mk authored Jan 12, 2021
2 parents 71c0563 + d89330e commit 1533f6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewBackend(system logical.SystemView) *backend {
},

Paths: []*framework.Path{
b.pathListRoles(),
b.pathRole(),
b.pathConfig(),
b.pathCredentials(),
Expand Down
2 changes: 1 addition & 1 deletion path_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type roleEntry struct {

func (b *backend) pathListRoles() *framework.Path {
return &framework.Path{
Pattern: "role/?$",
Pattern: "roles/?$",
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.ListOperation: b.operationRolesList,
},
Expand Down

0 comments on commit 1533f6f

Please sign in to comment.