Updating to reflect changes in DM 0.9.1
[merb_mart.git] / lib / authenticated_system / authenticated_routes.rb
bloba9b1998fc3eb99d29ec30b55790f921a5877c069
1 # Put the correct routes in place
2 module AuthenticatedSystem
3   def self.add_routes
4     Merb::BootLoader.after_app_loads do
5       Merb::Router.prepend do |r|
6         r.match("/login").to(:controller => "Session", :action => "create").name(:login)
7         r.match("/logout").to(:controller => "Session", :action => "destroy").name(:logout)
8         r.match("/users/activate/:activation_code").to(:controller => "User", :action => "activate").name(:user_activation)
10         r.resources :users
11         r.resources :session
12       end
13     end
14   end
15 end