From cf7b554d69ceb2d6eed28c0ae1504c99b710c6bd Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 9 Nov 2020 12:29:35 -0600 Subject: [PATCH] Removed unused well_known routes from ruby MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - unused well_known routes from ruby --- app/controllers/well_known/host_meta_controller.rb | 9 --------- .../well_known/keybase_proof_config_controller.rb | 9 --------- app/controllers/well_known/webfinger_controller.rb | 9 --------- config/routes.rb | 3 --- 4 files changed, 30 deletions(-) delete mode 100644 app/controllers/well_known/host_meta_controller.rb delete mode 100644 app/controllers/well_known/keybase_proof_config_controller.rb delete mode 100644 app/controllers/well_known/webfinger_controller.rb diff --git a/app/controllers/well_known/host_meta_controller.rb b/app/controllers/well_known/host_meta_controller.rb deleted file mode 100644 index d185a600..00000000 --- a/app/controllers/well_known/host_meta_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -module WellKnown - class HostMetaController < ActionController::Base - def show - raise GabSocial::NotPermittedError - end - end -end diff --git a/app/controllers/well_known/keybase_proof_config_controller.rb b/app/controllers/well_known/keybase_proof_config_controller.rb deleted file mode 100644 index 0661bbe4..00000000 --- a/app/controllers/well_known/keybase_proof_config_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -module WellKnown - class KeybaseProofConfigController < ActionController::Base - def show - render json: {}, status: 404 - end - end -end diff --git a/app/controllers/well_known/webfinger_controller.rb b/app/controllers/well_known/webfinger_controller.rb deleted file mode 100644 index dcb3ed10..00000000 --- a/app/controllers/well_known/webfinger_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -module WellKnown - class WebfingerController < ActionController::Base - def show - raise GabSocial::NotPermittedError - end - end -end diff --git a/config/routes.rb b/config/routes.rb index 4bc06283..46b3107e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,10 +22,7 @@ Rails.application.routes.draw do tokens: 'oauth/tokens' end - get '.well-known/host-meta', to: 'well_known/host_meta#show', as: :host_meta - get '.well-known/webfinger', to: 'well_known/webfinger#show', as: :webfinger get '.well-known/change-password', to: redirect('/auth/edit') - get '.well-known/keybase-proof-config', to: 'well_known/keybase_proof_config#show' get 'manifest', to: 'manifests#show', defaults: { format: 'json' } get 'intent', to: 'intents#show'