This commit is contained in:
@@ -5,6 +5,11 @@ defmodule CustomerService.Router do
|
||||
|
||||
identify(Aggregates.Customer, by: :id)
|
||||
dispatch([Commands.CreateCustomer], to: Aggregates.Customer)
|
||||
|
||||
dispatch(Commands.CreateCorporateCustomer,
|
||||
to: Aggregates.CorporateCustomer,
|
||||
identity: :id
|
||||
)
|
||||
end
|
||||
|
||||
defmodule CustomerService.CommandedApp do
|
||||
|
||||
Reference in New Issue
Block a user