Use resourceful routes for api tracepoints
This commit is contained in:
parent
2074e9dce2
commit
1be841589a
2 changed files with 13 additions and 13 deletions
|
@ -64,11 +64,11 @@ OpenStreetMap::Application.routes.draw do
|
|||
get "relations" => "relations#index"
|
||||
|
||||
get "map" => "map#index"
|
||||
|
||||
get "trackpoints" => "tracepoints#index"
|
||||
end
|
||||
|
||||
namespace :api, :path => "api/0.6" do
|
||||
resources :tracepoints, :path => "trackpoints", :only => :index
|
||||
|
||||
resources :users, :only => :index
|
||||
resources :users, :path => "user", :id => /\d+/, :only => :show
|
||||
resources :user_traces, :path => "user/gpx_files", :module => :users, :controller => :traces, :only => :index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue