X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f7367baa6b6091df3eabbe8b7a4b99e3fa314743..c5c344b12c6b538cce39b372079b051a6071c5b0:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index b0b2219c3..c0fbf2020 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -113,8 +113,8 @@ OpenStreetMap::Application.routes.draw do get "/relation/:id/history" => "browse#relation_history", :id => /\d+/, :as => :relation_history get "/changeset/:id" => "browse#changeset", :as => :changeset, :id => /\d+/ get "/changeset/:id/comments/feed" => "changeset_comments#index", :as => :changeset_comments_feed, :id => /\d*/, :defaults => { :format => "rss" } - get "/note/:id" => "browse#note", :id => /\d+/, :as => "browse_note" - get "/note/new" => "browse#new_note" + resources :notes, :path => "note", :only => [:show, :new] + get "/user/:display_name/history" => "changesets#index" get "/user/:display_name/history/feed" => "changesets#feed", :defaults => { :format => :atom } get "/user/:display_name/notes" => "notes#index", :as => :user_notes