organization.rb 736 B

12345678910111213
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # organizations
  4. match api_path + '/organizations/search', to: 'organizations#search', via: %i[get post]
  5. match api_path + '/organizations', to: 'organizations#index', via: :get
  6. match api_path + '/organizations/:id', to: 'organizations#show', via: :get
  7. match api_path + '/organizations', to: 'organizations#create', via: :post
  8. match api_path + '/organizations/:id', to: 'organizations#update', via: :put
  9. match api_path + '/organizations/:id', to: 'organizations#destroy', via: :delete
  10. match api_path + '/organizations/history/:id', to: 'organizations#history', via: :get
  11. end