overview.rb 740 B

123456789101112131415
  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. # overviews
  5. match api_path + '/overviews', to: 'overviews#index', via: :get
  6. match api_path + '/overviews/search', to: 'overviews#search', via: %i[get post]
  7. match api_path + '/overviews/:id', to: 'overviews#show', via: :get
  8. match api_path + '/overviews', to: 'overviews#create', via: :post
  9. match api_path + '/overviews/:id', to: 'overviews#update', via: :put
  10. match api_path + '/overviews/:id', to: 'overviews#destroy', via: :delete
  11. match api_path + '/overviews_prio', to: 'overviews#prio', via: :post
  12. end