aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb19
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