Add create_from_template route

This commit is contained in:
Eric Schultz 2018-11-07 11:42:53 -06:00
parent 9db02dd409
commit 758cbf1134

View file

@ -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