change condition for render endpoint in specific envinronment

This commit is contained in:
olegphenomenon 2022-03-09 15:26:05 +02:00
parent 72f184d9b0
commit 44296ab045
5 changed files with 17 additions and 4 deletions

View file

@ -1,7 +1,7 @@
module Repp
module V1
module Registrar
if Rails.env.development? || Rails.env.staging? || Rails.env.test?
if Feature.allow_accr_endspoints?
class AccreditationInfoController < BaseController
api :GET, 'repp/v1/registrar/accreditation/get_info'
desc 'check login user and return data'