]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/map_controller.rb
Add show user block api endpoint
[rails.git] / app / controllers / api / map_controller.rb
index 0d123fc3e7851f2d0eae4748d4cacf38575e8e47..5a05f6de2b527e6c236b665007ab8a5cd309b534 100644 (file)
@@ -22,6 +22,8 @@ module Api
       # check boundary is sane and area within defined
       # see /config/application.yml
       begin
+        raise OSM::APIBadUserInput, "The parameter bbox is required" unless params[:bbox]
+
         @bounds = BoundingBox.from_bbox_params(params)
         @bounds.check_boundaries
         @bounds.check_size