2012-07-10 09:43:21 +00:00
|
|
|
Rails.application.routes.draw do
|
2012-07-19 07:44:44 +00:00
|
|
|
namespace :panel do
|
|
|
|
namespace :gallery do
|
|
|
|
namespace :back_end do
|
2012-08-27 15:36:56 +00:00
|
|
|
match "get_albums" => "albums#get_albums"
|
|
|
|
match "upload_image" => "albums#upload_image"
|
2012-08-28 13:04:48 +00:00
|
|
|
match "save_tags" => "tags#save_tags"
|
2012-08-29 09:13:45 +00:00
|
|
|
match "albums/save_tags" => "tags#save_tags"
|
2012-08-28 13:04:48 +00:00
|
|
|
resources :albums do
|
2012-08-27 15:36:56 +00:00
|
|
|
match "set_cover" => "albums#set_cover"
|
2012-08-28 13:04:48 +00:00
|
|
|
match "imgs" => "albums#imgs"
|
2012-08-27 15:36:56 +00:00
|
|
|
match "upload_panel" => "albums#upload_panel"
|
2012-08-28 13:04:48 +00:00
|
|
|
match "images_tags" => "albums#images_tags"
|
2012-08-27 15:36:56 +00:00
|
|
|
end
|
|
|
|
|
2012-08-31 14:01:19 +00:00
|
|
|
match "album_images/#!/:id" => "album_images#show"
|
|
|
|
|
2012-08-28 13:04:48 +00:00
|
|
|
resources :album_images
|
2012-08-31 14:01:19 +00:00
|
|
|
|
|
|
|
|
2012-08-27 15:36:56 +00:00
|
|
|
resources :gallery_categories
|
2012-08-01 12:07:54 +00:00
|
|
|
resources :tags
|
2012-08-29 09:13:45 +00:00
|
|
|
|
2012-08-22 17:36:39 +00:00
|
|
|
end
|
|
|
|
namespace :front_end do
|
2012-09-03 13:49:35 +00:00
|
|
|
match "get_albums" => "albums#get_albums"
|
|
|
|
# match "orbit_galleries" => "orbit_galleries#index"
|
|
|
|
# match "gallery_category_save" => "orbit_galleries#new_category"
|
|
|
|
# match "categorylist" => "orbit_galleries#categorylist"
|
|
|
|
# match "gallery_category_delete" => "orbit_galleries#gallery_category_delete"
|
|
|
|
# match "add_album" => "orbit_galleries#add_album"
|
|
|
|
# match "create_album" => "orbit_galleries#create_album"
|
|
|
|
# match "get_albums" => "orbit_galleries#get_albums"
|
|
|
|
# match "upload_image" => "orbit_galleries#upload_image"
|
|
|
|
# match "upload_panel" => "orbit_galleries#upload_panel"
|
|
|
|
# match "get_images" => "orbit_galleries#get_images"
|
|
|
|
# match "theater" => "orbit_galleries#theater"
|
|
|
|
# match "delete_album" => "orbit_galleries#delete_album"
|
|
|
|
# match "edit_album" => "orbit_galleries#edit_album"
|
|
|
|
# match "set_cover" => "orbit_galleries#set_cover"
|
|
|
|
# match "delete_images" => "orbit_galleries#delete_images"
|
|
|
|
# match "update_album" => "orbit_galleries#update_album"
|
|
|
|
# match "save_tags" => "orbit_galleries#save_tags"
|
|
|
|
resources :albums do
|
2012-09-04 13:30:17 +00:00
|
|
|
member do
|
|
|
|
get "imgs"
|
|
|
|
get "theater"
|
|
|
|
end
|
2012-09-03 13:49:35 +00:00
|
|
|
end
|
|
|
|
resources :album_images
|
2012-07-19 07:44:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2012-07-10 09:43:21 +00:00
|
|
|
end
|