]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/map_controller.rb
Add links to the ToU and include them in signup
[rails.git] / app / controllers / api / map_controller.rb
index e8d36c8ec375e5e69eb25b290d1c524695d9112c..e1d1a3b37844878661c9458fd41dd282a3396b81 100644 (file)
@@ -1,8 +1,5 @@
 module Api
-  class MapController < ApplicationController
-    skip_before_action :verify_authenticity_token
-    before_action :api_deny_access_handler
-
+  class MapController < ApiController
     authorize_resource :class => false
 
     before_action :check_api_readable
@@ -25,8 +22,8 @@ module Api
         bbox = BoundingBox.from_bbox_params(params)
         bbox.check_boundaries
         bbox.check_size
-      rescue StandardError => err
-        report_error(err.message)
+      rescue StandardError => e
+        report_error(e.message)
         return
       end