aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/config/routes.rb
blob: 9c7a3d9ea157800957e1d2fd78e32c429dcb67ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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