Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (24 sloc) 709 Bytes
Refinery::Core::Engine.routes.draw do
# Frontend routes
namespace :portfolio do
root :to => "galleries#index"
resources :galleries, :only => [:index, :show]
end
# Admin routes
namespace :portfolio, :path => '' do
namespace :admin, :path => 'refinery' do
scope :path => 'portfolio' do
resources :galleries, :except => :show do
get :children, :on => :member
post :update_positions, :on => :collection
resources :items, :except => [:show] do
post :update_positions, :on => :collection
end
end
resources :items do
post :update_positions, :on => :collection
end
end
end
end
end