2014-11-07 08:44:11 +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
|
2023-09-24 07:15:32 +00:00
|
|
|
post 'news/get_preview_action', to: 'news#get_preview_action'
|
2014-11-07 08:44:11 +00:00
|
|
|
post 'news/preview', to: 'news#preview'
|
|
|
|
get 'news/destroy_preview/:slug_title-:uid', to: 'news#destroy_preview'
|
2015-03-06 01:31:21 +00:00
|
|
|
get 'newsbulletins.json', to: 'newsbulletins#get_bulletins'
|
2014-11-14 09:50:18 +00:00
|
|
|
post 'news/approve_news_bulletin', to: 'news#approve_news_bulletin'
|
2014-11-07 08:44:11 +00:00
|
|
|
get 'news_admins/get_departments' => "news_admins#get_departments"
|
2023-09-24 07:20:39 +00:00
|
|
|
get 'news/import_export', to: 'news#import_export'
|
|
|
|
get 'news/download_file_from_thread', to: 'news#download_file_from_thread'
|
|
|
|
post 'news/importnews', to: 'news#importnews'
|
|
|
|
get 'news/excel_format', to: 'news#excel_format'
|
|
|
|
get 'news/export_excel', to: 'news#export_excel'
|
2014-11-07 08:44:11 +00:00
|
|
|
resources :news
|
|
|
|
resources :news_admins
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
resources :news do
|
|
|
|
collection do
|
|
|
|
get ':slug_title-:uid', to: 'news#show', as: :display
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|