]> git.openstreetmap.org Git - rails.git/blob - config/routes.rb
more way bits
[rails.git] / config / routes.rb
1 ActionController::Routing::Routes.draw do |map|
2
3   # API
4
5   map.connect 'api/0.4/node/create', :controller => 'node', :action => 'create'
6   map.connect 'api/0.4/node/:id/history', :controller => 'node', :action => 'history', :id => nil
7   map.connect 'api/0.4/node/:id', :controller => 'node', :action => 'rest', :id => nil
8
9   map.connect 'api/0.4/segment/create', :controller => 'segment', :action => 'create'
10   map.connect 'api/0.4/segment/:id/history', :controller => 'segment', :action => 'history'
11   map.connect 'api/0.4/segment/:id', :controller => 'segment', :action => 'rest'
12
13   map.connect 'api/0.4/way/create', :controller => 'way', :action => 'create'
14   map.connect 'api/0.4/way/:id/history', :controller => 'way', :action => 'history'
15   map.connect 'api/0.4/way/:id', :controller => 'way', :action => 'rest'
16
17   map.connect 'api/0.4/map', :controller => 'api', :action => 'map'
18   
19   # web site
20
21   map.connect '/', :controller => 'site', :action => 'index'
22   map.connect '/index.html', :controller => 'site', :action => 'index'
23   map.connect '/edit.html', :controller => 'site', :action => 'edit'
24   map.connect '/login.html', :controller => 'user', :action => 'login'
25   map.connect '/logout.html', :controller => 'user', :action => 'logout'
26   map.connect '/create-account.html', :controller => 'user', :action => 'new'
27   map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
28
29   map.connect ':controller/:action/:id'
30 end