overview.rb 576 B

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