organization.rb 469 B

12345678910
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # organizations
  4. match api_path + '/organizations', :to => 'organizations#index', :via => :get
  5. match api_path + '/organizations/:id', :to => 'organizations#show', :via => :get
  6. match api_path + '/organizations', :to => 'organizations#create', :via => :post
  7. match api_path + '/organizations/:id', :to => 'organizations#update', :via => :put
  8. end