trabajo-afectivo/config/routes/report.rb

17 lines
867 B
Ruby
Raw Normal View History

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
match api_path + '/reports/sets', to: 'reports#sets', via: [: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