text_module.rb 951 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. # text_modules
  5. match api_path + '/text_modules/import_example', to: 'text_modules#import_example', via: :get
  6. match api_path + '/text_modules/import', to: 'text_modules#import_start', via: :post
  7. match api_path + '/text_modules', to: 'text_modules#index', via: :get
  8. match api_path + '/text_modules/search', to: 'text_modules#search', via: %i[get post]
  9. match api_path + '/text_modules/:id', to: 'text_modules#show', via: :get
  10. match api_path + '/text_modules', to: 'text_modules#create', via: :post
  11. match api_path + '/text_modules/:id', to: 'text_modules#update', via: :put
  12. match api_path + '/text_modules/:id', to: 'text_modules#destroy', via: :delete
  13. end