From: Anton Khorev Date: Fri, 20 Dec 2024 23:24:17 +0000 (+0300) Subject: Move users index route to api namespace X-Git-Tag: live~6^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/91de69bc17cfd5958cdb6c6ccad1ab98c0b828ae Move users index route to api namespace --- diff --git a/config/routes.rb b/config/routes.rb index 0e00da9e3..6a47d8a7c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -70,10 +70,11 @@ OpenStreetMap::Application.routes.draw do 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 => ""