Authorization Domain and Role Resource closes #321 #322
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ defmodule Mv.Authorization do
|
||||||
resource Mv.Authorization.Role do
|
resource Mv.Authorization.Role do
|
||||||
define :create_role, action: :create_role
|
define :create_role, action: :create_role
|
||||||
define :list_roles, action: :read
|
define :list_roles, action: :read
|
||||||
|
define :get_role, action: :read, get_by: [:id]
|
||||||
define :update_role, action: :update_role
|
define :update_role, action: :update_role
|
||||||
define :destroy_role, action: :destroy
|
define :destroy_role, action: :destroy
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue