]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/relations_controller.rb
Enforce rate limit for API calls which make changes
[rails.git] / app / controllers / api / relations_controller.rb
index 19aed6a85db00dd715c7fe05ee9662eca08db20d..e833ae8307bc48bb8898cafde4cf2bf9d3c1df63 100644 (file)
@@ -12,6 +12,7 @@ module Api
     around_action :api_call_handle_error, :api_call_timeout
 
     before_action :set_request_formats, :except => [:create, :update, :delete]
+    before_action :check_rate_limit, :only => [:create, :update, :delete]
 
     def index
       raise OSM::APIBadUserInput, "The parameter relations is required, and must be of the form relations=id[,id[,id...]]" unless params["relations"]