]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Move the search controller to the api namespace
[rails.git] / config / routes.rb
index 314cefe9e33e4c66123c6906041e43a529d6b93c..a124901587ee2c634a94171655a01e99f2e7428e 100644 (file)
@@ -61,10 +61,10 @@ OpenStreetMap::Application.routes.draw do
 
     get "changes" => "api/changes#index"
 
-    get "search" => "search#search_all", :as => "api_search"
-    get "ways/search" => "search#search_ways"
-    get "relations/search" => "search#search_relations"
-    get "nodes/search" => "search#search_nodes"
+    get "search" => "api/search#search_all", :as => "api_search"
+    get "ways/search" => "api/search#search_ways"
+    get "relations/search" => "api/search#search_relations"
+    get "nodes/search" => "api/search#search_nodes"
 
     get "user/:id" => "users#api_read", :id => /\d+/
     get "user/details" => "users#api_details"