]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/nodes_controller.rb
Enforce rate limit for API calls which make changes
[rails.git] / app / controllers / api / nodes_controller.rb
index 6934a13c04b9d6e8373a0b68bfde994a9f71177d..fb808828c80a221d794b205cd256d28f34b7af7c 100644 (file)
@@ -14,6 +14,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]
 
     # Dump the details on many nodes whose ids are given in the "nodes" parameter.
     def index