]> git.openstreetmap.org Git - rails.git/blob - config/routes.rb
dao db and map request fixes
[rails.git] / config / routes.rb
1 ActionController::Routing::Routes.draw do |map|
2   map.connect ':controller/service.wsdl', :action => 'wsdl'
3
4
5   map.connect '/api/0.4/node/:id', :controller => 'node', :action => 'rest'
6   map.connect '/api/0.4/node/create', :controller => 'node', :action => 'create'
7  
8   map.connect '/api/0.4/segment/:id', :controller => 'segment', :action => 'rest'
9   map.connect '/api/0.4/segment/create', :controller => 'segment', :action => 'create'
10
11   map.connect '/api/0.4/way/:id', :controller => 'way', :action => 'rest'
12   map.connect '/api/0.4/way/create', :controller => 'way', :action => 'create'
13  
14   map.connect ':controller/:action/:id'
15 end