aboutsummaryrefslogblamecommitdiffstats
path: root/config/routes.rb
blob: bc26998d6424efd9185f4f0f889fbb6d299af686 (plain) (tree)


















                                                             
Refinery::Core::Engine.routes.append do

  # Frontend routes
  namespace :banners do
    resources :banners, :path => '', :only => [:index, :show]
  end

  # Admin routes
  namespace :banners, :path => '' do
    namespace :admin, :path => 'refinery' do
      resources :banners, :except => :show do
        collection do
          post :update_positions
        end
      end
    end
  end

end