X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9f7ec064e448a745e0ea2615a089f0988215dec6..11cd1c9fc1417f5e6b52991897b29bb94a4288a4:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 2c904fc48..6764335d6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -67,11 +67,11 @@ OpenStreetMap::Application.routes.draw do get "user/gpx_files" => "api/users#gpx_files" get "users" => "api/users#index", :as => :api_users - get "user/preferences" => "api/user_preferences#read" - get "user/preferences/:preference_key" => "api/user_preferences#read_one" - put "user/preferences" => "api/user_preferences#update" - put "user/preferences/:preference_key" => "api/user_preferences#update_one" - delete "user/preferences/:preference_key" => "api/user_preferences#delete_one" + get "user/preferences" => "api/user_preferences#index" + get "user/preferences/:preference_key" => "api/user_preferences#show" + put "user/preferences" => "api/user_preferences#update_all" + put "user/preferences/:preference_key" => "api/user_preferences#update" + delete "user/preferences/:preference_key" => "api/user_preferences#destroy" post "gpx/create" => "api/traces#create" get "gpx/:id" => "api/traces#show", :id => /\d+/