report.rb 1.0 KB

12345678910111213141516171819
  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. # reports
  5. match api_path + '/reports/config', to: 'reports#reporting_config', via: :get
  6. match api_path + '/reports/generate', to: 'reports#generate', via: :post
  7. match api_path + '/reports/sets', to: 'reports#sets', via: %i[post get]
  8. # report_profiles
  9. match api_path + '/report_profiles', to: 'report_profiles#index', via: :get
  10. match api_path + '/report_profiles/search', to: 'report_profiles#search', via: %i[get post]
  11. match api_path + '/report_profiles/:id', to: 'report_profiles#show', via: :get
  12. match api_path + '/report_profiles', to: 'report_profiles#create', via: :post
  13. match api_path + '/report_profiles/:id', to: 'report_profiles#update', via: :put
  14. match api_path + '/report_profiles/:id', to: 'report_profiles#destroy', via: :delete
  15. end