feat(ash): added accounts, user for authentication
This commit is contained in:
parent
80e7041146
commit
f154eea055
5 changed files with 160 additions and 1 deletions
13
lib/accounts/accounts.ex
Normal file
13
lib/accounts/accounts.ex
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
defmodule Mv.Accounts do
|
||||
use Ash.Domain,
|
||||
extensions: [AshPhoenix]
|
||||
|
||||
resources do
|
||||
resource Mv.Accounts.User do
|
||||
define(:create_user, action: :create)
|
||||
define(:list_users, action: :read)
|
||||
define(:update_user, action: :update)
|
||||
define(:destroy_user, action: :destroy)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue