group.rb 508 B

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