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"
|
2020-08-15 13:42:57 +00:00
|
|
|
get "/xhr/calendars/index_agenda" => "calendars#index_agenda"
|
|
|
|
|
2014-12-16 11:40:15 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|