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
|
|
|
|
namespace :admin do
|
2014-07-21 08:28:09 +00:00
|
|
|
get "galleries/get_photoData_json" => "galleries#get_photoData_json"
|
|
|
|
|
2014-05-05 06:07:18 +00:00
|
|
|
resources :galleries do
|
|
|
|
get "imgs" => "galleries#imgs"
|
|
|
|
end
|
|
|
|
resources :images
|
|
|
|
post "galleries/upload_image" => "galleries#upload_image"
|
2014-07-21 08:28:09 +00:00
|
|
|
|
2014-05-05 06:07:18 +00:00
|
|
|
get "new_images" => "galleries#new_images"
|
|
|
|
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"
|
|
|
|
# match "image_tagging" => "album_images#image_tagging"
|
2014-05-01 07:06:48 +00:00
|
|
|
end
|
2014-10-20 12:25:58 +00:00
|
|
|
|
2014-05-01 07:06:48 +00:00
|
|
|
end
|
2014-05-01 06:33:52 +00:00
|
|
|
end
|