setting.rb 1.0 KB

12345678910111213141516171819
  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. # base objects
  5. match api_path + '/settings', to: 'settings#index', via: :get
  6. match api_path + '/settings/area/:area', to: 'settings#index', via: :get
  7. match api_path + '/settings/:id', to: 'settings#show', via: :get
  8. match api_path + '/settings', to: 'settings#create', via: :post
  9. match api_path + '/settings/image/:id', to: 'settings#update_image', via: :put
  10. match api_path + '/settings/:id', to: 'settings#update', via: :put
  11. match api_path + '/settings/reset/:id', to: 'settings#reset', via: :post
  12. match api_path + '/settings/:id', to: 'settings#destroy', via: :delete
  13. match api_path + '/settings/ticket_agent_default_notifications/apply_to_all',
  14. to: 'settings/ticket_agent_default_notifications#apply_to_all',
  15. via: :post
  16. end