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:
Andy Allan 2023-01-25 19:01:57 +00:00
parent e443d99edd
commit f7367baa6b
7 changed files with 140 additions and 140 deletions

View file

@ -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" }