mitgliederverwaltung/lib/accounts/accounts.ex
Moritz af4af338e3
All checks were successful
continuous-integration/drone/push Build is passing
feat: activate ash_admin for Accounts and Membershiop domain
2025-07-17 21:18:52 +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