Default to json type for webfinger requests (#1583)

This commit is contained in:
Matt Jankowski 2017-04-12 10:03:37 -04:00 committed by Eugen
parent fd102059aa
commit b352a8e5d4
4 changed files with 36 additions and 8 deletions

View file

@ -15,7 +15,7 @@ Rails.application.routes.draw do
end
get '.well-known/host-meta', to: 'xrd#host_meta', as: :host_meta
get '.well-known/webfinger', to: 'xrd#webfinger', as: :webfinger
get '.well-known/webfinger', to: 'xrd#webfinger', as: :webfinger, defaults: { format: 'json' }
devise_for :users, path: 'auth', controllers: {
sessions: 'auth/sessions',