Removed api version prefix for iCal routes.

This commit is contained in:
Thorsten Eckel 2015-06-26 10:24:18 +02:00
parent aba5be2fb8
commit 8c775463c5

View file

@ -1,7 +1,6 @@
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
match api_path + '/ical', to: 'i_cal#all', via: :get
match api_path + '/ical/:object', to: 'i_cal#object', via: :get
match api_path + '/ical/:object/:method', to: 'i_cal#object', via: :get
match '/ical', to: 'i_cal#all', via: :get
match '/ical/:object', to: 'i_cal#object', via: :get
match '/ical/:object/:method', to: 'i_cal#object', via: :get
end