trabajo-afectivo/config/routes/calendar.rb
2022-01-01 14:38:12 +01:00

15 lines
752 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
# calendars
match api_path + '/calendars_init', to: 'calendars#init', via: :get
match api_path + '/calendars/timezones', to: 'calendars#timezones', via: :get
match api_path + '/calendars', to: 'calendars#index', via: :get
match api_path + '/calendars/:id', to: 'calendars#show', via: :get
match api_path + '/calendars', to: 'calendars#create', via: :post
match api_path + '/calendars/:id', to: 'calendars#update', via: :put
match api_path + '/calendars/:id', to: 'calendars#destroy', via: :delete
end