X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7f943c715d7104fd4f22fe59a79a5d52e71a7c4..317b8f9d45b25c4060bda337edfb73594834d275:/app/controllers/ways_controller.rb diff --git a/app/controllers/ways_controller.rb b/app/controllers/ways_controller.rb index 85d9b5a5b..caf787105 100644 --- a/app/controllers/ways_controller.rb +++ b/app/controllers/ways_controller.rb @@ -22,7 +22,7 @@ class WaysController < ApplicationController render :plain => way.id.to_s end - def read + def show way = Way.find(params[:id]) response.last_modified = way.timestamp @@ -82,7 +82,7 @@ class WaysController < ApplicationController end end - def ways + def index unless params["ways"] raise OSM::APIBadUserInput, "The parameter ways is required, and must be of the form ways=id[,id[,id...]]" end