User prference system basically done

This commit is contained in:
Steve Coast 2008-02-23 13:37:36 +00:00
parent 331cf6b068
commit 2e44f9ccf3
3 changed files with 78 additions and 0 deletions

View file

@ -41,6 +41,8 @@ ActionController::Routing::Routes.draw do |map|
map.connect "api/#{API_VERSION}/nodes/search", :controller => 'search', :action => 'search_nodes'
map.connect "api/#{API_VERSION}/user/details", :controller => 'user', :action => 'api_details'
map.connect "api/#{API_VERSION}/user/preferences", :controller => 'user_preference', :action => 'read', :conditions => { :method => :get }
map.connect "api/#{API_VERSION}/user/preferences", :controller => 'user_preference', :action => 'update', :conditions => { :method => :put }
map.connect "api/#{API_VERSION}/user/gpx_files", :controller => 'user', :action => 'api_gpx_files'
map.connect "api/#{API_VERSION}/gpx/create", :controller => 'trace', :action => 'api_create'