|
|
@ -104,13 +104,9 @@ Rails.application.routes.draw do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
devise_for :users, path: 'auth', format: false, controllers: {
|
|
|
|
scope module: :auth do
|
|
|
|
omniauth_callbacks: 'auth/omniauth_callbacks',
|
|
|
|
devise_for :users, path: 'auth', format: false
|
|
|
|
sessions: 'auth/sessions',
|
|
|
|
end
|
|
|
|
registrations: 'auth/registrations',
|
|
|
|
|
|
|
|
passwords: 'auth/passwords',
|
|
|
|
|
|
|
|
confirmations: 'auth/confirmations',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with_options constraints: ->(req) { req.format.nil? || req.format.html? } do
|
|
|
|
with_options constraints: ->(req) { req.format.nil? || req.format.html? } do
|
|
|
|
get '/users/:username', to: redirect_with_vary('/@%{username}')
|
|
|
|
get '/users/:username', to: redirect_with_vary('/@%{username}')
|
|
|
|