X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7f943c715d7104fd4f22fe59a79a5d52e71a7c4..1778fa3d9c25ae1a98386d3dcbb426eda5e62fbf:/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)