mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +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
|
@ -5,6 +5,9 @@ module Repp
|
|||
before_action :set_domain, only: %i[update destroy]
|
||||
before_action :verify_status
|
||||
|
||||
THROTTLED_ACTIONS = %i[update destroy].freeze
|
||||
include Shunter::Integration::Throttle
|
||||
|
||||
api :DELETE, '/repp/v1/domains/:domain_name/statuses/:status'
|
||||
param :domain_name, String, desc: 'Domain name'
|
||||
desc 'Remove status from specific domain'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue