diff options
author | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
---|---|---|
committer | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
commit | 56d7747f54e86993415b76c92e101608e5ea44e2 (patch) | |
tree | 025b7b37f50c4c291e7e676286e7767c40adb1f9 /config/routes.rb | |
download | refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.gz refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.bz2 refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.zip |
initial commit
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..bc26998 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,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 |