Removed unused well_known routes from ruby

• Removed:
- unused well_known routes from ruby
This commit is contained in:
mgabdev 2020-11-09 12:29:35 -06:00
parent 0526e546c9
commit cf7b554d69
4 changed files with 0 additions and 30 deletions

View File

@ -1,9 +0,0 @@
# frozen_string_literal: true
module WellKnown
class HostMetaController < ActionController::Base
def show
raise GabSocial::NotPermittedError
end
end
end

View File

@ -1,9 +0,0 @@
# frozen_string_literal: true
module WellKnown
class KeybaseProofConfigController < ActionController::Base
def show
render json: {}, status: 404
end
end
end

View File

@ -1,9 +0,0 @@
# frozen_string_literal: true
module WellKnown
class WebfingerController < ActionController::Base
def show
raise GabSocial::NotPermittedError
end
end
end

View File

@ -22,10 +22,7 @@ Rails.application.routes.draw do
tokens: 'oauth/tokens' tokens: 'oauth/tokens'
end 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/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 'manifest', to: 'manifests#show', defaults: { format: 'json' }
get 'intent', to: 'intents#show' get 'intent', to: 'intents#show'