From: Anton Khorev Date: Fri, 20 Dec 2024 23:28:06 +0000 (+0300) Subject: Move user show route to api namespace X-Git-Tag: live~313^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b31ac7430e86b9661b836269162d4c57d3c2d1fb?ds=inline Move user show route to api namespace --- diff --git a/config/routes.rb b/config/routes.rb index 6a47d8a7c..b8689256d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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