mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use module: :auth
to wrap devise_for
routes config (#30990)
This commit is contained in:
parent
c244b70dc2
commit
6c37529723
1 changed files with 3 additions and 7 deletions
|
@ -104,13 +104,9 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
devise_for :users, path: 'auth', format: false, controllers: {
|
||||
omniauth_callbacks: 'auth/omniauth_callbacks',
|
||||
sessions: 'auth/sessions',
|
||||
registrations: 'auth/registrations',
|
||||
passwords: 'auth/passwords',
|
||||
confirmations: 'auth/confirmations',
|
||||
}
|
||||
scope module: :auth do
|
||||
devise_for :users, path: 'auth', format: false
|
||||
end
|
||||
|
||||
with_options constraints: ->(req) { req.format.nil? || req.format.html? } do
|
||||
get '/users/:username', to: redirect_with_vary('/@%{username}')
|
||||
|
|
Loading…
Reference in a new issue