trabajo-afectivo/config/routes/report.rb

19 lines
943 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://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