routes.rb 442 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. Rails.application.routes.draw do
  3. devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
  4. devise_scope :user do
  5. delete 'sign_out', to: 'devise/sessions#destroy', as: :destroy_user_session
  6. end
  7. resources :friends, only: :index do
  8. member do
  9. get :follow
  10. end
  11. end
  12. resource :account
  13. resources :authorizations, only: [:destroy]
  14. root to: 'home#index'
  15. end