diff --git a/config/routes.rb b/config/routes.rb index a7ee50163..4e7de8ae8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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]