]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Create api map resource
[rails.git] / config / routes.rb
index d8e83b97b3838cdb725249dd0824b9f312af5a8f..84e5e861947075ad2af5f7f77aea6ea0c37f1d27 100644 (file)
@@ -62,11 +62,11 @@ OpenStreetMap::Application.routes.draw do
     put "relation/:id" => "relations#update", :id => /\d+/
     delete "relation/:id" => "relations#delete", :id => /\d+/
     get "relations" => "relations#index"
-
-    get "map" => "map#index"
   end
 
   namespace :api, :path => "api/0.6" do
+    resource :map, :only => :show
+
     resources :tracepoints, :path => "trackpoints", :only => :index
 
     resources :users, :only => :index