role.rb 534 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. # roles
  5. match api_path + '/roles', to: 'roles#index', via: :get
  6. match api_path + '/roles/search', to: 'roles#search', via: %i[get post]
  7. match api_path + '/roles/:id', to: 'roles#show', via: :get
  8. match api_path + '/roles', to: 'roles#create', via: :post
  9. match api_path + '/roles/:id', to: 'roles#update', via: :put
  10. end