From 8c775463c585c409494a629d790ce661a419240a Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 26 Jun 2015 10:24:18 +0200 Subject: [PATCH] Removed api version prefix for iCal routes. --- config/routes/i_cal.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/routes/i_cal.rb b/config/routes/i_cal.rb index db95baa58..3152ffbd1 100644 --- a/config/routes/i_cal.rb +++ b/config/routes/i_cal.rb @@ -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