trabajo-afectivo/config/routes/template.rb

12 lines
506 B
Ruby
Raw Normal View History

2013-08-21 19:16:42 +00:00
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
2013-08-21 19:16:42 +00:00
# templates
match api_path + '/templates', to: 'templates#index', via: :get
match api_path + '/templates/:id', to: 'templates#show', via: :get
match api_path + '/templates', to: 'templates#create', via: :post
match api_path + '/templates/:id', to: 'templates#update', via: :put
match api_path + '/templates/:id', to: 'templates#destroy', via: :delete
end