]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Use resourceful routes for api tracepoints
[rails.git] / config / routes.rb
index 9e82a037dafea8d95c3c25a6ee4597ea1e6a888d..d858d80b17c153fe3543f1a06c2d8ce08d2eaa4e 100644 (file)
@@ -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