feat: activate ash_admin for Accounts and Membershiop domain
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Moritz 2025-07-17 21:18:52 +02:00 committed by moritz
parent 96434c020b
commit 5287a20b98
2 changed files with 10 additions and 2 deletions

View file

@ -3,7 +3,11 @@ defmodule Mv.Accounts do
AshAuthentication specific domain to handle Authentication for users. AshAuthentication specific domain to handle Authentication for users.
""" """
use Ash.Domain, use Ash.Domain,
extensions: [AshPhoenix] extensions: [AshAdmin.Domain, AshPhoenix]
admin do
show? true
end
resources do resources do
resource Mv.Accounts.User do resource Mv.Accounts.User do

View file

@ -1,6 +1,10 @@
defmodule Mv.Membership do defmodule Mv.Membership do
use Ash.Domain, use Ash.Domain,
extensions: [AshPhoenix] extensions: [AshAdmin.Domain, AshPhoenix]
admin do
show? true
end
resources do resources do
resource Mv.Membership.Member do resource Mv.Membership.Member do