Rename api_notes resource to avoid conflict with non-API resource
This allows using e.g. note_path for notes#show in the future.
This commit is contained in:
parent
e443d99edd
commit
f7367baa6b
7 changed files with 140 additions and 140 deletions
|
@ -84,7 +84,7 @@ OpenStreetMap::Application.routes.draw do
|
|||
get "gpx/:id/data" => "api/traces#data", :as => :api_trace_data
|
||||
|
||||
# Map notes API
|
||||
resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :controller => "api/notes" do
|
||||
resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :controller => "api/notes", :as => :api_notes do
|
||||
collection do
|
||||
get "search"
|
||||
get "feed", :defaults => { :format => "rss" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue