X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d2e11a327eb686bd2d1293ac146a2bb9730ba19b..947a41edee95df9e75cce0452277e2a00a8b5fa5:/app/controllers/nodes_controller.rb diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 65f9b27ed..6c1d66db4 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -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)