2009-01-07 20:27:12 +01:00
|
|
|
ActionController::Routing::Routes.draw do |map|
|
2009-02-07 22:22:25 +01:00
|
|
|
map.resources :folders, :requirements => {:id => /[^\/]+/}
|
2011-03-27 20:53:06 +02:00
|
|
|
map.resources :contacts, :member => {:add_from_mail => :get}, :collection => {:add_multiple => :get}
|
2009-09-01 15:51:29 +02:00
|
|
|
map.resources :contact_groups
|
2009-02-07 22:22:25 +01:00
|
|
|
|
2009-01-07 20:27:12 +01: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-25 01:06:13 +01:00
|
|
|
map.root :controller=>'webmail', :action=>'index'
|
2009-01-07 20:27:12 +01:00
|
|
|
|
2009-02-05 16:55:24 +01:00
|
|
|
map.connect 'webmail', :controller=>'webmail', :action=>'index'
|
2009-01-07 20:27:12 +01:00
|
|
|
|
2009-02-05 16:55:24 +01:00
|
|
|
map.connect 'webmail/:action', :controller=>'webmail'
|
2009-01-07 20:27:12 +01:00
|
|
|
|
2011-03-25 01:06:13 +01:00
|
|
|
map.connect '/contact/:action', :controller=>'contacts'
|
2009-01-07 20:27:12 +01: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
|