get "user/:id" => "users#show", :id => /\d+/, :as => :api_user
get "user/details" => "users#details"
get "user/gpx_files" => "users#gpx_files"
- get "users" => "users#index", :as => :api_users
end
namespace :api, :path => "api/0.6" do
+ resources :users, :only => :index
+
resources :user_preferences, :except => [:new, :create, :edit], :param => :preference_key, :path => "user/preferences" do
collection do
put "" => "user_preferences#update_all", :as => ""