report.rb 943 B

123456789101112131415161718
  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/:id', to: 'report_profiles#show', via: :get
  11. match api_path + '/report_profiles', to: 'report_profiles#create', via: :post
  12. match api_path + '/report_profiles/:id', to: 'report_profiles#update', via: :put
  13. match api_path + '/report_profiles/:id', to: 'report_profiles#destroy', via: :delete
  14. end