role.rb 401 B

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