2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2015-09-09 06:52:05 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
|
|
|
|
|
|
|
# calendars
|
2019-02-10 11:01:38 +00:00
|
|
|
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
|
2015-09-09 06:52:05 +00:00
|
|
|
|
|
|
|
end
|