aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
blob: bc26998d6424efd9185f4f0f889fbb6d299af686 (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.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