X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdf9634d08540baf0264bdf74bd9a2f6bebfb124..507c395f51c20c3c0d5375313ea1ca0ed4156c75:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index af72c457d..31b42f99f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -108,6 +108,8 @@ OpenStreetMap::Application.routes.draw do post "close" post "reopen" end + + resource :subscription, :only => [:create, :destroy], :controller => "note_subscriptions" end resources :user_blocks, :only => :show, :id => /\d+/, :controller => "user_blocks" @@ -286,8 +288,9 @@ OpenStreetMap::Application.routes.draw do match "/user/:display_name/remove_friend" => "friendships#remove_friend", :via => [:get, :post], :as => "remove_friend" # user lists - match "/users" => "users#index", :via => [:get, :post] - match "/users/:status" => "users#index", :via => [:get, :post] + namespace :users do + resource :list, :path => "(:status)", :only => [:show, :update] + end # geocoder get "/search" => "geocoder#search"