calendar.rb 752 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. # calendars
  5. match api_path + '/calendars_init', to: 'calendars#init', via: :get
  6. match api_path + '/calendars/timezones', to: 'calendars#timezones', via: :get
  7. match api_path + '/calendars', to: 'calendars#index', via: :get
  8. match api_path + '/calendars/:id', to: 'calendars#show', via: :get
  9. match api_path + '/calendars', to: 'calendars#create', via: :post
  10. match api_path + '/calendars/:id', to: 'calendars#update', via: :put
  11. match api_path + '/calendars/:id', to: 'calendars#destroy', via: :delete
  12. end