[#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
|
||||
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
|
||||
post 'users' => 'users/registrations#create', as: :user_registration
|
||||
end
|
||||
|
||||
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }, skip: [:registrations]
|
||||
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
resources :advisories, only: [:index, :show, :create, :update]
|
||||
|
|
Loading…
Reference in New Issue