This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/vendor/built_in_modules/gallery/config/routes.rb

60 lines
2.5 KiB
Ruby

Rails.application.routes.draw do
namespace :panel do
namespace :gallery do
namespace :back_end do
# match "orbit_gallery" => "orbit_galleries#index"
# match "add_album" => "orbit_galleries#add"
# match "create_album" => "orbit_galleries#create_album"
match "get_albums" => "albums#get_albums"
match "upload_image" => "albums#upload_image"
match "get_images" => "album_images#get_images"
match "theater" => "album_images#theater"
# match "delete_album" => "orbit_galleries#delete"
# match "edit_album" => "orbit_galleries#edit"
#match "set_cover" => "albums#set_cover"
# match "delete_images" => "orbit_galleries#delete_images"
# # match "update_album" => "orbit_galleries#update_album"
match "save_tags" => "album_images#save_tags"
# match "categories" => "orbit_gallery_categories#index"
# match "gallery_category_delete" => "orbit_gallery_categories#delete"
# match "gallery_category_save" => "orbit_gallery_categories#new"
resources :albums do
match "set_cover" => "albums#set_cover"
match "get_images" => "albums#get_images"
match "upload_panel" => "albums#upload_panel"
end
resources :album_images do
# match "delete" => "album_images#destroy"
end
resources :gallery_categories
resources :tags
end
namespace :front_end do
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"
end
end
end
end