calendar.rb 675 B

12345678910111213
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # calendars
  4. match api_path + '/calendars_init', to: 'calendars#init', via: :get
  5. match api_path + '/calendars/timezones', to: 'calendars#timezones', via: :get
  6. match api_path + '/calendars', to: 'calendars#index', via: :get
  7. match api_path + '/calendars/:id', to: 'calendars#show', via: :get
  8. match api_path + '/calendars', to: 'calendars#create', via: :post
  9. match api_path + '/calendars/:id', to: 'calendars#update', via: :put
  10. match api_path + '/calendars/:id', to: 'calendars#destroy', via: :delete
  11. end