]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
First half of a password reset function
[rails.git] / config / routes.rb
index 8f251f7d3d8b510c94690987f84de1a4b5e0d276..4f898ea76382e8b17cd4879ab818016ffe34903c 100644 (file)
@@ -9,12 +9,18 @@ ActionController::Routing::Routes.draw do |map|
   map.connect 'api/0.4/segment/:id/history', :controller => 'segment', :action => 'history'
   map.connect 'api/0.4/segment/:id', :controller => 'segment', :action => 'rest'
 
+  map.connect 'api/0.4/way/create', :controller => 'way', :action => 'create'
+  map.connect 'api/0.4/way/:id', :controller => 'way', :action => 'rest'
+  
+  # misc site stuff
+
   map.connect '/', :controller => 'site', :action => 'index'
   map.connect '/index.html', :controller => 'site', :action => 'index'
   map.connect '/edit.html', :controller => 'site', :action => 'edit'
   map.connect '/login.html', :controller => 'user', :action => 'login'
   map.connect '/logout.html', :controller => 'user', :action => 'logout'
   map.connect '/create-account.html', :controller => 'user', :action => 'new'
+  map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
 
   map.connect ':controller/:action/:id'
 end