Fixed conditions syntax in some finder methods.
[merb_mart.git] / lib / authenticated_system / authenticated_routes.rb
blob9f73c31a04d2e4ba6ee34983074bf04ce3dc30a6
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.resources :users
9         r.resources :session
10       end
11     end
12   end
13 end