mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
change condition for render endpoint in specific envinronment
This commit is contained in:
parent
72f184d9b0
commit
44296ab045
5 changed files with 17 additions and 4 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue