From 91de69bc17cfd5958cdb6c6ccad1ab98c0b828ae Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 21 Dec 2024 02:24:17 +0300 Subject: [PATCH] Move users index route to api namespace --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 => "" -- 2.39.5