]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/nodes_controller.rb
Rename api controller test files
[rails.git] / app / controllers / nodes_controller.rb
index 65f9b27ed1a64150c482ccf3c44c6af3d98a44e0..6c1d66db4c1dd9edb078e07103640d3341b120d1 100644 (file)
@@ -26,7 +26,7 @@ class NodesController < ApplicationController
   end
 
   # Dump the details on a node given in params[:id]
-  def read
+  def show
     node = Node.find(params[:id])
 
     response.last_modified = node.timestamp
@@ -63,7 +63,7 @@ class NodesController < ApplicationController
   end
 
   # Dump the details on many nodes whose ids are given in the "nodes" parameter.
-  def nodes
+  def index
     raise OSM::APIBadUserInput, "The parameter nodes is required, and must be of the form nodes=id[,id[,id...]]" unless params["nodes"]
 
     ids = params["nodes"].split(",").collect(&:to_i)