Add rate limiting to missing actions

This commit is contained in:
Thiago Youssef 2022-08-07 11:31:58 -03:00 committed by olegphenomenon
parent e65d55765a
commit 88090523ff
3 changed files with 7 additions and 4 deletions

View file

@ -3,8 +3,11 @@ module Repp
module Registrar
class AccreditationInfoController < BaseController
if Feature.allow_accr_endspoints?
api :GET, 'repp/v1/registrar/accreditation/get_info'
desc 'check login user and return data'
THROTTLED_ACTIONS = %i[index].freeze
include Shunter::Integration::Throttle
api :GET, 'repp/v1/registrar/accreditation/get_info'
desc 'check login user and return data'
def index
login = current_user