diff options
Diffstat (limited to 'app/controllers/well_known')
-rw-r--r-- | app/controllers/well_known/keybase_proof_config_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/well_known/keybase_proof_config_controller.rb b/app/controllers/well_known/keybase_proof_config_controller.rb index e1d43ecbe..03232df2d 100644 --- a/app/controllers/well_known/keybase_proof_config_controller.rb +++ b/app/controllers/well_known/keybase_proof_config_controller.rb @@ -2,8 +2,16 @@ module WellKnown class KeybaseProofConfigController < ActionController::Base + before_action :check_enabled + def show render json: {}, serializer: ProofProvider::Keybase::ConfigSerializer, root: 'keybase_config' end + + private + + def check_enabled + head 404 unless Setting.enable_keybase + end end end |