]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/ways_controller.rb
Enforce rate limit for API calls which make changes
[rails.git] / app / controllers / api / ways_controller.rb
index c4fce48d07d7badcfa86f797336ee05ed3099416..5e72cfe209db66c29e5666bc2af744722acc40b6 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 ways is required, and must be of the form ways=id[,id[,id...]]" unless params["ways"]