56 lines
2.8 KiB
Ruby
56 lines
2.8 KiB
Ruby
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 "curation/get_all_anncs_without_subannc", to: "curations#get_all_anncs_without_subannc"
|
|
post 'curation/get_preview_action', to: 'curations#get_preview_action'
|
|
post 'curation/preview', to: 'curations#preview'
|
|
post 'curation/createfeed', to: 'curations#createfeed'
|
|
post 'curation/importanns', to: 'curations#importanns'
|
|
post 'curation/import_from_xml', to: 'curations#import_from_xml'
|
|
get 'curation/excel_format', to: 'curations#excel_format'
|
|
get 'curation/export_excel', to: 'curations#export_excel'
|
|
patch 'curation/updatefeed', to: 'curations#updatefeed'
|
|
delete 'curation/deletefeed', to: 'curations#deletefeed'
|
|
get 'curation/destroy_preview/:slug_title-:uid', to: 'curations#destroy_preview'
|
|
post 'curation/approve_bulletin', to: 'curations#approve_bulletin'
|
|
get 'curation/feed', to: 'curations#feed'
|
|
get 'curations/feedform', to: 'curations#feedform'
|
|
get 'curation/settings', to: 'curations#settings'
|
|
get 'curation/import', to: 'curations#import'
|
|
get 'curation/download_file_from_thread', to: 'curations#download_file_from_thread'
|
|
post 'curation/createsettings', to: 'curations#createsettings'
|
|
patch 'curation/updatesettings', to: 'curations#updatesettings'
|
|
post 'curation/import_from_wp', to: 'curations#import_from_wp'
|
|
post 'curation/generate_iframe_url' => 'curations#generate_iframe_url'
|
|
delete 'curations/delete', to: 'curations#delete'
|
|
resources :curations
|
|
get 'curations/:id/comment'=> 'curations#comment'
|
|
get 'annc-comment-hidden/:id' => 'curations#comment_hidden'
|
|
resource :curation,:only => [] do
|
|
collection do
|
|
get "edit_sort"
|
|
post "update_sort_setting", to: 'curations#update_sort_setting'
|
|
post "update_sort", to: 'curations#update_sort'
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :curations do
|
|
collection do
|
|
get ':slug_title-:uid', to: 'curations#show', as: :display
|
|
end
|
|
end
|
|
post "/xhr/curations/feed_add_remote/:uid" => "curation_feeds#feed_add_remote"
|
|
post "/xhr/curations/feed_remove_remote/:uid" => "curation_feeds#feed_remove_remote"
|
|
get "/xhr/curations/feed/:uid" => "curation_feeds#feed"
|
|
get "/xhr/curations/rssfeed/:uid" => "curation_feeds#rssfeed"
|
|
get "/xhr/curations/feeds" => "curation_feeds#feeds"
|
|
get '/xhr/curations/curation.json', to: 'bulletins#get_bulletins'
|
|
get '/xhr/panel/curation/widget/sync_data' => 'curations#show_widget'
|
|
get '/xhr/curations/:slug_title-:uid/comment', to: 'curations#comment'
|
|
get '/xhr/curations/file/:id/*f_name', to: 'curations#get_file', format: false
|
|
end
|
|
end
|