calendar/config/routes.rb

20 lines
497 B
Ruby
Raw Normal View History

2014-12-16 11:40:15 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
get "/calendars/agenda" => "calendars#agenda"
resources :calendars
resources :calendar_types
end
get "/xhr/calendars/events" => "calendars#events"
get "/xhr/calendars/agenda" => "calendars#agenda"
get "/xhr/calendars/index_agenda" => "calendars#index_agenda"
2014-12-16 11:40:15 +00:00
end
end