[#345] change devise routes

This commit is contained in:
Alexander Machehin 2014-03-12 21:59:57 +06:00
parent b7e745d86e
commit bdcbc7e837
1 changed files with 2 additions and 2 deletions

View File

@ -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]