[#345] change devise routes
This commit is contained in:
parent
b7e745d86e
commit
bdcbc7e837
|
@ -6,12 +6,12 @@ Rosa::Application.routes.draw do
|
||||||
|
|
||||||
devise_scope :users do
|
devise_scope :users do
|
||||||
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
|
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
|
||||||
end
|
|
||||||
devise_for :users, controllers: {omniauth_callbacks: 'users/omniauth_callbacks'}, skip: [:registrations] do
|
|
||||||
get 'users/sign_up' => 'users/registrations#new', as: :new_user_registration
|
get 'users/sign_up' => 'users/registrations#new', as: :new_user_registration
|
||||||
post 'users' => 'users/registrations#create', as: :user_registration
|
post 'users' => 'users/registrations#create', as: :user_registration
|
||||||
end
|
end
|
||||||
|
|
||||||
|
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }, skip: [:registrations]
|
||||||
|
|
||||||
namespace :api do
|
namespace :api do
|
||||||
namespace :v1 do
|
namespace :v1 do
|
||||||
resources :advisories, only: [:index, :show, :create, :update]
|
resources :advisories, only: [:index, :show, :create, :update]
|
||||||
|
|
Loading…
Reference in New Issue