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/full", :controller => 'way', :action => 'full', :id => nil
17 map.connect "api/#{API_VERSION}/way/:id", :controller => 'way', :action => 'rest', :id => nil
18 map.connect "api/#{API_VERSION}/ways", :controller => 'way', :action => 'ways', :id => nil
20 map.connect "api/#{API_VERSION}/map", :controller => 'api', :action => 'map'
22 map.connect "api/#{API_VERSION}/trackpoints", :controller => 'api', :action => 'trackpoints'
24 map.connect "api/#{API_VERSION}/search", :controller => 'search', :action => 'search_all'
25 map.connect "api/#{API_VERSION}/way/search", :controller => 'search', :action => 'search_ways'
26 map.connect "api/#{API_VERSION}/segment/search", :controller => 'search', :action => 'search_segments'
27 map.connect "api/#{API_VERSION}/nodes/search", :controller => 'search', :action => 'search_nodes'
29 map.connect "api/#{API_VERSION}/user/details", :controller => 'user', :action => 'api_details'
30 map.connect "api/#{API_VERSION}/user/gpx_files", :controller => 'user', :action => 'api_gpx_files'
32 map.connect "api/#{API_VERSION}/gpx/create/:filename/:description/:tags", :controller => 'trace', :action => 'api_create'
33 map.connect "api/#{API_VERSION}/gpx/:id/details", :controller => 'trace', :action => 'api_details'
34 map.connect "api/#{API_VERSION}/gpx/:id/data", :controller => 'trace', :action => 'api_data'
38 map.connect "api/#{API_VERSION}/amf", :controller =>'amf', :action =>'talk'
39 map.connect "api/#{API_VERSION}/swf/trackpoints", :controller =>'swf', :action =>'trackpoints'
43 map.connect '/', :controller => 'site', :action => 'index'
44 map.connect '/user/save', :controller => 'user', :action => 'save'
45 map.connect '/user/confirm', :controller => 'user', :action => 'confirm'
46 map.connect '/user/go_public', :controller => 'user', :action => 'go_public'
47 map.connect '/index.html', :controller => 'site', :action => 'index'
48 map.connect '/edit.html', :controller => 'site', :action => 'edit'
49 map.connect '/search.html', :controller => 'way_tag', :action => 'search'
50 map.connect '/login.html', :controller => 'user', :action => 'login'
51 map.connect '/logout.html', :controller => 'user', :action => 'logout'
52 map.connect '/create-account.html', :controller => 'user', :action => 'new'
53 map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
56 map.connect '/traces', :controller => 'trace', :action => 'list'
57 map.connect '/traces/page/:page', :controller => 'trace', :action => 'list'
58 map.connect '/traces/mine', :controller => 'trace', :action => 'mine'
59 map.connect '/trace/create', :controller => 'trace', :action => 'create'
60 map.connect '/traces/mine/page/:page', :controller => 'trace', :action => 'mine'
61 map.connect '/traces/mine/tag/:tag', :controller => 'trace', :action => 'mine'
62 map.connect '/traces/mine/tag/:tag/page/:page', :controller => 'trace', :action => 'mine'
63 map.connect '/traces/rss', :controller => 'trace', :action => 'georss'
64 map.connect '/user/:display_name/traces', :controller => 'trace', :action => 'list', :id => nil
65 map.connect '/user/:display_name/traces/page/:page', :controller => 'trace', :action => 'list', :id => nil
66 map.connect '/user/:display_name/traces/:id', :controller => 'trace', :action => 'view', :id => nil
67 map.connect '/user/:display_name/traces/:id/picture', :controller => 'trace', :action => 'picture', :id => nil
68 map.connect '/user/:display_name/traces/:id/icon', :controller => 'trace', :action => 'icon', :id => nil
69 map.connect '/traces/tag/:tag', :controller => 'trace', :action => 'list', :id => nil
70 map.connect '/traces/tag/:tag/page/:page', :controller => 'trace', :action => 'list', :id => nil
73 map.connect '/user/:display_name/make_friend', :controller => 'user', :action => 'make_friend'
74 map.connect '/user/:display_name', :controller => 'user', :action => 'view'
75 map.connect '/user/:display_name/diary', :controller => 'user', :action => 'diary'
76 map.connect '/user/:display_name/diary/newpost', :controller => 'diary_entry', :action => 'new'
77 map.connect '/user/:display_name/edit', :controller => 'user', :action => 'edit'
78 map.connect '/user/:display_name/account', :controller => 'user', :action => 'account'
79 map.connect '/user/:display_name/set_home', :controller => 'user', :action => 'set_home'
80 map.connect '/diary', :controller => 'diary_entry', :action => 'list'
83 map.connect '/test/populate/:table/:from/:count', :controller => 'test', :action => 'populate'
84 map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1
87 map.connect '/geocoder/search/', :controller => 'geocoder', :action => 'search'
88 map.connect '/geocoder/results/', :controller => 'geocoder', :action => 'results'
89 map.connect '/postcode/:postcode/', :controller => 'geocoder', :action => 'search'
93 map.connect '/message/new/:user_id', :controller => 'message', :action => 'new'
94 map.connect '/message/read/:message_id', :controller => 'message', :action => 'read'
95 map.connect '/message/mark/:message_id', :controller => 'message', :action => 'mark'
98 map.connect ':controller/:id/:action'
99 map.connect ':controller/:action'