]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Move the trackpoints call into its own controller (and rename to tracepoints)
[rails.git] / config / routes.rb
index b0fe5e48e889087a55b5ee2e47e93e4e907213d3..d90d928a03e8f02e1d46c3064c9710612fbb75d6 100644 (file)
@@ -1,9 +1,11 @@
 OpenStreetMap::Application.routes.draw do
   # API
-  get "api/capabilities" => "api#capabilities"
+  namespace :api do
+    get "capabilities" => "capabilities#show"
+  end
 
   scope "api/0.6" do
-    get "capabilities" => "api#capabilities"
+    get "capabilities" => "api/capabilities#show"
     get "permissions" => "api#permissions"
 
     put "changeset/create" => "changesets#create"
@@ -55,7 +57,7 @@ OpenStreetMap::Application.routes.draw do
 
     get "map" => "api#map"
 
-    get "trackpoints" => "api#trackpoints"
+    get "trackpoints" => "api/tracepoints#index"
 
     get "changes" => "api#changes"