mitgliederverwaltung/lib/accounts/accounts.ex
Moritz 5287a20b98
All checks were successful
continuous-integration/drone/push Build is passing
feat: activate ash_admin for Accounts and Membershiop domain
2025-07-24 12:38:21 +02:00

22 lines
487 B
Elixir

defmodule Mv.Accounts do
@moduledoc """
AshAuthentication specific domain to handle Authentication for users.
"""
use Ash.Domain,
extensions: [AshAdmin.Domain, AshPhoenix]
admin do
show? true
end
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