18 lines
437 B
Elixir
18 lines
437 B
Elixir
defmodule Mv.Accounts do
|
|
@moduledoc """
|
|
AshAuthentication specific domain to handle Authentication for users.
|
|
"""
|
|
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
|
|
|
|
resource Mv.Accounts.Token
|
|
end
|
|
end
|