trabajo-afectivo/config/routes/report.rb

19 lines
942 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
2015-10-20 08:48:43 +00:00
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
# reports
2015-10-29 15:19:31 +00:00
match api_path + '/reports/config', to: 'reports#reporting_config', via: :get
match api_path + '/reports/generate', to: 'reports#generate', via: :post
2017-11-23 08:09:44 +00:00
match api_path + '/reports/sets', to: 'reports#sets', via: %i[post get]
2015-10-20 08:48:43 +00:00
# report_profiles
match api_path + '/report_profiles', to: 'report_profiles#index', via: :get
match api_path + '/report_profiles/:id', to: 'report_profiles#show', via: :get
match api_path + '/report_profiles', to: 'report_profiles#create', via: :post
match api_path + '/report_profiles/:id', to: 'report_profiles#update', via: :put
match api_path + '/report_profiles/:id', to: 'report_profiles#destroy', via: :delete
end