routes.rb 442 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
# frozen_string_literal: true

Eugen Rochko's avatar
Eugen Rochko committed
3 4
Rails.application.routes.draw do
  devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
5

Eugen Rochko's avatar
Eugen Rochko committed
6 7 8 9
  devise_scope :user do
    delete 'sign_out', to: 'devise/sessions#destroy', as: :destroy_user_session
  end

10 11 12 13 14 15
  resources :friends, only: :index do
    member do
      get :follow
    end
  end

Eugen Rochko's avatar
Eugen Rochko committed
16 17 18
  resource  :account
  resources :authorizations, only: [:destroy]

Eugen Rochko's avatar
Eugen Rochko committed
19 20
  root to: 'home#index'
end