1 ActionController::Routing::Routes.draw do |map|
2 map.home '', :controller => 'songs', :action => 'index'
3 map.resources :songs, :usages, :users, :sessions
4 map.resources :shows, :member => {:reorder => :put}
6 map.activate 'activate/:activation_code', :controller => 'users', :action => 'activate'
9 map.with_options(:controller => 'slingshot_sync') do |sync|
10 sync.up 'sync/up', :action => 'up'
11 sync.down 'sync/down', :action => 'down'
12 sync.log 'sync/log', :action => 'log'
15 # Install the default route as the lowest priority.
16 map.connect ':controller/:action/:id.:format'
17 map.connect ':controller/:action/:id'