Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/5021'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jul 26, 2024
2 parents 9e4a240 + a67fdc7 commit 8990de1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@
delete "gpx/:id" => "traces#destroy", :id => /\d+/
get "gpx/:id/details" => "traces#show", :id => /\d+/
get "gpx/:id/data" => "traces#data", :as => :api_trace_data
end

namespace :api, :path => "api/0.6" do
# Map notes API
resources :notes, :except => [:new, :edit, :update], :constraints => { :id => /\d+/ }, :controller => "notes", :as => :api_notes do
resources :notes, :except => [:new, :edit, :update], :id => /\d+/, :controller => "notes" do
collection do
get "search"
get "feed", :defaults => { :format => "rss" }
Expand All @@ -99,7 +101,7 @@
end
end

resources :user_blocks, :only => [:show], :constraints => { :id => /\d+/ }, :controller => "user_blocks", :as => :api_user_blocks
resources :user_blocks, :only => :show, :id => /\d+/, :controller => "user_blocks"
end

# Data browsing
Expand Down

0 comments on commit 8990de1

Please sign in to comment.