35 lines
1.1 KiB
Ruby
35 lines
1.1 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
|
|
get "/xhr/galleries/theater/:id" => "galleries#theater"
|
|
namespace :admin do
|
|
get "galleries/get_photoData_json" => "galleries#get_photoData_json"
|
|
|
|
get "galleries/new_images" => "galleries#new_images"
|
|
get "galleries/last_image_id" => "galleries#last_image_id"
|
|
post "galleries/set_cover" => "galleries#set_cover"
|
|
post "galleries/delete_photos" => "images#delete_photos"
|
|
post "galleries/update_image" => "images#update_image"
|
|
post "galleries/image_tagging" => "images#image_tagging"
|
|
post "galleries/order" => "images#changeorder"
|
|
|
|
resources :galleries do
|
|
get "imgs" => "galleries#imgs"
|
|
member do
|
|
get "import"
|
|
get "excel_format"
|
|
post "importimages"
|
|
end
|
|
end
|
|
resources :images
|
|
post "galleries/upload_image" => "galleries#upload_image"
|
|
|
|
|
|
# match "image_tagging" => "album_images#image_tagging"
|
|
end
|
|
end
|
|
|
|
end
|