calendar.rb 574 B

123456789101112
  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', to: 'calendars#index', via: :get
  6. match api_path + '/calendars/:id', to: 'calendars#show', via: :get
  7. match api_path + '/calendars', to: 'calendars#create', via: :post
  8. match api_path + '/calendars/:id', to: 'calendars#update', via: :put
  9. match api_path + '/calendars/:id', to: 'calendars#destroy', via: :delete
  10. end