trabajo-afectivo/config/routes/template.rb

14 lines
582 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
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