Add create_from_template route
This commit is contained in:
parent
9db02dd409
commit
758cbf1134
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ Commitchange::Application.routes.draw do
|
|||
post(:send_code)
|
||||
end
|
||||
|
||||
resources(:campaign_templates, {only: [:index, :create, :show, :destroy]})
|
||||
resources(:campaign_templates, {only: [:index, :create, :show, :destroy]}) do
|
||||
post :create_from_template, on: :collection
|
||||
end
|
||||
|
||||
post 'tracking', controller: 'trackings', action: 'create'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue