Move user show route to api namespace
This commit is contained in:
parent
91de69bc17
commit
b31ac7430e
1 changed files with 1 additions and 1 deletions
|
@ -67,13 +67,13 @@ OpenStreetMap::Application.routes.draw do
|
|||
|
||||
get "trackpoints" => "tracepoints#index"
|
||||
|
||||
get "user/:id" => "users#show", :id => /\d+/, :as => :api_user
|
||||
get "user/details" => "users#details"
|
||||
get "user/gpx_files" => "users#gpx_files"
|
||||
end
|
||||
|
||||
namespace :api, :path => "api/0.6" do
|
||||
resources :users, :only => :index
|
||||
resources :users, :path => "user", :id => /\d+/, :only => :show
|
||||
|
||||
resources :user_preferences, :except => [:new, :create, :edit], :param => :preference_key, :path => "user/preferences" do
|
||||
collection do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue