2013-08-21 19:16:42 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
2012-10-22 13:00:26 +00:00
|
|
|
|
2013-08-21 19:16:42 +00:00
|
|
|
# text_modules
|
2018-02-20 04:29:30 +00:00
|
|
|
match api_path + '/text_modules/import_example', to: 'text_modules#import_example', via: :get
|
|
|
|
match api_path + '/text_modules/import', to: 'text_modules#import_start', via: :post
|
|
|
|
match api_path + '/text_modules', to: 'text_modules#index', via: :get
|
|
|
|
match api_path + '/text_modules/:id', to: 'text_modules#show', via: :get
|
|
|
|
match api_path + '/text_modules', to: 'text_modules#create', via: :post
|
|
|
|
match api_path + '/text_modules/:id', to: 'text_modules#update', via: :put
|
|
|
|
match api_path + '/text_modules/:id', to: 'text_modules#destroy', via: :delete
|
2012-10-22 13:00:26 +00:00
|
|
|
|
2015-04-27 14:15:29 +00:00
|
|
|
end
|