- get "search" => "api/search#search_all", :as => "api_search"
- get "ways/search" => "api/search#search_ways"
- get "relations/search" => "api/search#search_relations"
- get "nodes/search" => "api/search#search_nodes"
-
- get "user/:id" => "api/users#api_read", :id => /\d+/
- get "user/details" => "api/users#api_details"
- get "user/gpx_files" => "api/users#api_gpx_files"
- get "users" => "api/users#api_users", :as => :api_users
-
- get "user/preferences" => "api/user_preferences#read"
- get "user/preferences/:preference_key" => "api/user_preferences#read_one"
- put "user/preferences" => "api/user_preferences#update"
- put "user/preferences/:preference_key" => "api/user_preferences#update_one"
- delete "user/preferences/:preference_key" => "api/user_preferences#delete_one"
+ resources :user_preferences, :except => [:new, :create, :edit], :param => :preference_key, :path => "user/preferences", :controller => "api/user_preferences" do
+ collection do
+ put "" => "api/user_preferences#update_all", :as => ""
+ end
+ end