report.rb 866 B

12345678910111213141516
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # reports
  4. match api_path + '/reports/config', to: 'reports#reporting_config', via: :get
  5. match api_path + '/reports/generate', to: 'reports#generate', via: :post
  6. match api_path + '/reports/sets', to: 'reports#sets', via: %i[post get]
  7. # report_profiles
  8. match api_path + '/report_profiles', to: 'report_profiles#index', via: :get
  9. match api_path + '/report_profiles/:id', to: 'report_profiles#show', via: :get
  10. match api_path + '/report_profiles', to: 'report_profiles#create', via: :post
  11. match api_path + '/report_profiles/:id', to: 'report_profiles#update', via: :put
  12. match api_path + '/report_profiles/:id', to: 'report_profiles#destroy', via: :delete
  13. end