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 '/account', :controller => 'user', :action => 'account'
37 map.connect '/create-account.html', :controller => 'user', :action => 'new'
38 map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
41 map.connect '/traces', :controller => 'trace', :action => 'list'
42 map.connect '/traces/page/:page', :controller => 'trace', :action => 'list'
43 map.connect '/traces/mine', :controller => 'trace', :action => 'mine'
44 map.connect '/traces/mine/page/:page', :controller => 'trace', :action => 'mine'
45 map.connect '/traces/mine/tag/:tag', :controller => 'trace', :action => 'mine'
46 map.connect '/traces/mine/tag/:tag/page/:page', :controller => 'trace', :action => 'mine'
47 map.connect '/traces/rss', :controller => 'trace', :action => 'georss'
48 map.connect '/user/:display_name/traces', :controller => 'trace', :action => 'list', :id => nil
49 map.connect '/user/:display_name/traces/page/:page', :controller => 'trace', :action => 'list', :id => nil
50 map.connect '/user/:display_name/traces/:id', :controller => 'trace', :action => 'view', :id => nil
51 map.connect '/user/:display_name/traces/:id/picture', :controller => 'trace', :action => 'picture', :id => nil
52 map.connect '/user/:display_name/traces/:id/icon', :controller => 'trace', :action => 'icon', :id => nil
53 map.connect '/traces/tag/:tag', :controller => 'trace', :action => 'list', :id => nil
54 map.connect '/traces/tag/:tag/page/:page', :controller => 'trace', :action => 'list', :id => nil
58 map.connect '/user/:display_name', :controller => 'user', :action => 'view'
59 map.connect '/user/:display_name/diary', :controller => 'diary', :action => 'view'
62 map.connect '/test/populate/:table/:from/:count', :controller => 'test', :action => 'populate'
63 map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1
66 map.connect ':controller/:id/:action'
67 map.connect ':controller/:action'