diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-12 10:03:37 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-12 16:03:37 +0200 |
commit | b352a8e5d4f3dba4b923a2a21dc9ae5343e7e8e4 (patch) | |
tree | 6fab1683ceda218fdf8639a7967e092ba50ff03c /config | |
parent | fd102059aa63a3953ccfedfe9efa0e6f7993f72a (diff) |
Default to json type for webfinger requests (#1583)
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 69f8887b2..99ce1754e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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', |