mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +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
|
@ -4,6 +4,9 @@ module Repp
|
|||
class NameserversController < BaseController
|
||||
before_action :verify_nameserver_existance, only: %i[update]
|
||||
|
||||
THROTTLED_ACTIONS = %i[put].freeze
|
||||
include Shunter::Integration::Throttle
|
||||
|
||||
api :PUT, 'repp/v1/registrar/nameservers'
|
||||
desc 'bulk nameserver change'
|
||||
param :data, Hash, required: true, desc: 'Object holding nameserver changes' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue