2009-01-08 05:27:12 +10:00
|
|
|
ActionController::Routing::Routes.draw do |map|
|
2009-02-08 07:22:25 +10:00
|
|
|
map.resources :folders, :requirements => {:id => /[^\/]+/}
|
2011-03-27 15:53:06 -03:00
|
|
|
map.resources :contacts, :member => {:add_from_mail => :get}, :collection => {:add_multiple => :get}
|
2009-09-02 00:51:29 +11:00
|
|
|
map.resources :contact_groups
|
2009-02-08 07:22:25 +10:00
|
|
|
|
2009-01-08 05:27:12 +10:00
|
|
|
# Add your own custom routes here.
|
|
|
|
# The priority is based upon order of creation: first created -> highest priority.
|
|
|
|
|
|
|
|
# Here's a sample route:
|
|
|
|
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
|
|
|
|
# Keep in mind you can assign values other than :controller and :action
|
2011-03-24 21:06:13 -03:00
|
|
|
map.root :controller=>'webmail', :action=>'index'
|
2009-01-08 05:27:12 +10:00
|
|
|
|
2009-02-06 01:55:24 +10:00
|
|
|
map.connect 'webmail', :controller=>'webmail', :action=>'index'
|
2009-01-08 05:27:12 +10:00
|
|
|
|
2009-02-06 01:55:24 +10:00
|
|
|
map.connect 'webmail/:action', :controller=>'webmail'
|
2009-01-08 05:27:12 +10:00
|
|
|
|
2011-03-24 21:06:13 -03:00
|
|
|
map.connect '/contact/:action', :controller=>'contacts'
|
2009-01-08 05:27:12 +10:00
|
|
|
|
|
|
|
map.connect 'admin/main', :controller=> 'login', :action=>'logout'
|
|
|
|
# Allow downloading Web Service WSDL as a file with an extension
|
|
|
|
# instead of a file named 'wsdl'
|
|
|
|
map.connect ':controller/service.wsdl', :action => 'wsdl'
|
|
|
|
|
|
|
|
# Install the default route as the lowest priority.
|
|
|
|
map.connect ':controller/:action/:id'
|
|
|
|
end
|