2014-05-01 06:33:52 +00:00
|
|
|
Rails.application.routes.draw do
|
2014-05-01 07:06:48 +00:00
|
|
|
|
|
|
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
|
|
|
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
2015-07-16 11:27:14 +00:00
|
|
|
get "/xhr/galleries/theater/:id" => "galleries#theater"
|
2014-05-01 07:06:48 +00:00
|
|
|
namespace :admin do
|
2014-07-21 08:28:09 +00:00
|
|
|
get "galleries/get_photoData_json" => "galleries#get_photoData_json"
|
2019-09-25 06:53:46 +00:00
|
|
|
get "galleries/recreate_image" => "galleries#recreate_image"
|
|
|
|
get "galleries/crop_process" => "images#crop_process"
|
|
|
|
post "galleries/recreate_image/recreate_progress" => "galleries#recreate_progress"
|
|
|
|
get "galleries/recreate_image/finish_recreate" => "galleries#finish_recreate"
|
|
|
|
get "galleries/batch_crop" => "images#batch_crop"
|
2016-06-28 08:40:23 +00:00
|
|
|
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"
|
2019-09-25 06:53:46 +00:00
|
|
|
post "galleries/translate" => "galleries#call_translate"
|
|
|
|
post "galleries/save_crop" => "galleries#save_crop"
|
|
|
|
get "galleries/upload_process" => "galleries#upload_process"
|
|
|
|
post "galleries/start_upload_process" => "galleries#start_upload_process"
|
|
|
|
post "galleries/init_upload" => "galleries#init_upload"
|
2014-05-05 06:07:18 +00:00
|
|
|
resources :galleries do
|
2016-12-20 11:43:54 +00:00
|
|
|
get "imgs" => "galleries#imgs"
|
|
|
|
member do
|
|
|
|
get "import"
|
|
|
|
get "excel_format"
|
|
|
|
post "importimages"
|
|
|
|
end
|
2014-05-05 06:07:18 +00:00
|
|
|
end
|
|
|
|
resources :images
|
|
|
|
post "galleries/upload_image" => "galleries#upload_image"
|
2014-07-21 08:28:09 +00:00
|
|
|
|
2016-06-28 08:40:23 +00:00
|
|
|
|
2014-05-05 06:07:18 +00:00
|
|
|
# match "image_tagging" => "album_images#image_tagging"
|
2014-05-01 07:06:48 +00:00
|
|
|
end
|
|
|
|
end
|
2015-04-16 12:07:54 +00:00
|
|
|
|
2014-05-01 06:33:52 +00:00
|
|
|
end
|