]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Move the capabilities call out of api_controller
[rails.git] / config / routes.rb
index b0fe5e48e889087a55b5ee2e47e93e4e907213d3..32e6f7367721297004b050e5935fc2f86f6e10c1 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"