aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/config/routes.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-17 11:36:55 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-17 11:38:07 +0100
commit9be44b3fa9985b8a93160434ce9f6dc922ec4387 (patch)
treecf488691c1168caf9e02be7830635da76b3bc57b /vendor/extensions/gallery_links/config/routes.rb
parent302aadd8bfd4030d9b2a71d5121fd650c0918338 (diff)
downloadhmnoweb-9be44b3fa9985b8a93160434ce9f6dc922ec4387.tar.gz
hmnoweb-9be44b3fa9985b8a93160434ce9f6dc922ec4387.tar.bz2
hmnoweb-9be44b3fa9985b8a93160434ce9f6dc922ec4387.zip
New extension GalleryLinks
Diffstat (limited to 'vendor/extensions/gallery_links/config/routes.rb')
-rw-r--r--vendor/extensions/gallery_links/config/routes.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/extensions/gallery_links/config/routes.rb b/vendor/extensions/gallery_links/config/routes.rb
new file mode 100644
index 0000000..9c7a3d9
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/routes.rb
@@ -0,0 +1,19 @@
+Refinery::Core::Engine.routes.draw do
+
+ # Frontend routes
+ namespace :gallery_links do
+ resources :gallery_links, :path => '', :only => [:index, :show]
+ end
+
+ # Admin routes
+ namespace :gallery_links, :path => '' do
+ namespace :admin, :path => Refinery::Core.backend_route do
+ resources :gallery_links, :except => :show do
+ collection do
+ post :update_positions
+ end
+ end
+ end
+ end
+
+end