mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
Add rate limiting to all repp actions
This commit is contained in:
parent
fb60466194
commit
2a58bf3849
48 changed files with 757 additions and 16 deletions
|
@ -6,6 +6,9 @@ module Repp
|
|||
before_action :select_renewable_domains, only: [:bulk_renew]
|
||||
before_action :set_domain, only: [:create]
|
||||
|
||||
THROTTLED_ACTIONS = %i[create bulk_renew].freeze
|
||||
include Shunter::Integration::Throttle
|
||||
|
||||
api :POST, 'repp/v1/domains/:domain_name/renew'
|
||||
desc 'Renew domain'
|
||||
param :renews, Hash, required: true, desc: 'Renew parameters' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue