setting.rb 783 B

123456789101112131415
  1. # Copyright (C) 2012-2023 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/:id', to: 'settings#destroy', via: :delete
  12. end