1 ActionController::Routing::Routes.draw do |map|
4 map.connect "api/#{API_VERSION}/node/create", :controller => 'node', :action => 'create'
5 map.connect "api/#{API_VERSION}/node/:id/history", :controller => 'old_node', :action => 'history', :id => nil
6 map.connect "api/#{API_VERSION}/node/:id", :controller => 'node', :action => 'rest', :id => nil
7 map.connect "api/#{API_VERSION}/nodes", :controller => 'node', :action => 'nodes', :id => nil
9 map.connect "api/#{API_VERSION}/segment/create", :controller => 'segment', :action => 'create'
10 map.connect "api/#{API_VERSION}/segment/:id/history", :controller => 'old_segment', :action => 'history'
11 map.connect "api/#{API_VERSION}/segment/:id", :controller => 'segment', :action => 'rest'
12 map.connect "api/#{API_VERSION}/segments", :controller => 'segment', :action => 'segments', :id => nil
14 map.connect "api/#{API_VERSION}/way/create", :controller => 'way', :action => 'create'
15 map.connect "api/#{API_VERSION}/way/:id/history", :controller => 'old_way', :action => 'history', :id => nil
16 map.connect "api/#{API_VERSION}/way/:id", :controller => 'way', :action => 'rest', :id => nil
17 map.connect "api/#{API_VERSION}/ways", :controller => 'way', :action => 'ways', :id => nil
19 map.connect "api/#{API_VERSION}/map", :controller => 'api', :action => 'map'
21 map.connect "api/#{API_VERSION}/user/details", :controller => 'user', :action => 'api_details'
22 map.connect "api/#{API_VERSION}/user/gpx_files", :controller => 'user', :action => 'api_gpx_files'
24 map.connect "api/#{API_VERSION}/gpx/create/:filename/:description/:tags", :controller => 'trace', :action => 'api_create'
25 map.connect "api/#{API_VERSION}/gpx/:id/details", :controller => 'trace', :action => 'api_details'
26 map.connect "api/#{API_VERSION}/gpx/:id/data", :controller => 'trace', :action => 'api_data'
30 map.connect '/', :controller => 'site', :action => 'index'
31 map.connect '/index.html', :controller => 'site', :action => 'index'
32 map.connect '/edit.html', :controller => 'site', :action => 'edit'
33 map.connect '/search.html', :controller => 'way_tag', :action => 'search'
34 map.connect '/login.html', :controller => 'user', :action => 'login'
35 map.connect '/logout.html', :controller => 'user', :action => 'logout'
36 map.connect '/create-account.html', :controller => 'user', :action => 'new'
37 map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
40 map.connect '/traces', :controller => 'trace', :action => 'list'
41 map.connect '/traces/page/:page', :controller => 'trace', :action => 'list'
42 map.connect '/traces/mine', :controller => 'trace', :action => 'mine'
43 map.connect '/traces/mine/page/:page', :controller => 'trace', :action => 'mine'
44 map.connect '/traces/mine/tag/:tag', :controller => 'trace', :action => 'mine'
45 map.connect '/traces/mine/tag/:tag/page/:page', :controller => 'trace', :action => 'mine'
46 map.connect '/traces/rss', :controller => 'trace', :action => 'georss'
47 map.connect '/traces/user/:display_name/', :controller => 'trace', :action => 'list', :id => nil
\r
48 map.connect '/traces/user/:display_name/page/:page', :controller => 'trace', :action => 'list', :id => nil
\r
49 map.connect '/traces/user/:display_name/:id', :controller => 'trace', :action => 'view', :id => nil
50 map.connect '/traces/user/:display_name/:id/picture', :controller => 'trace', :action => 'picture', :id => nil
51 map.connect '/traces/user/:display_name/:id/icon', :controller => 'trace', :action => 'icon', :id => nil
52 map.connect '/traces/tag/:tag', :controller => 'trace', :action => 'list', :id => nil
53 map.connect '/traces/tag/:tag/page/:page', :controller => 'trace', :action => 'list', :id => nil
\r
56 map.connect '/test/populate/:table/:from/:count', :controller => 'test', :action => 'populate'
57 map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1
60 map.connect ':controller/:action/:id'