This repository has been archived on 2023-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
2014-11-07 08:32:00 +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
|
|
|
|
post 'announcement/preview', to: 'announcements#preview'
|
|
|
|
get 'announcement/destroy_preview/:slug_title-:uid', to: 'announcements#destroy_preview'
|
2015-03-06 01:26:36 +00:00
|
|
|
get 'bulletins.json', to: 'bulletins#get_bulletins'
|
2014-11-14 09:49:20 +00:00
|
|
|
post 'announcement/approve_bulletin', to: 'announcements#approve_bulletin'
|
2014-11-07 08:32:00 +00:00
|
|
|
resources :announcements
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :announcements do
|
|
|
|
collection do
|
|
|
|
get ':slug_title-:uid', to: 'announcements#show', as: :display
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|