routes.rb 549 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
  resources :friends, only: :index do
11 12 13 14
    collection do
      get :status
      get :results
      get :domains
15 16

      post :follow_all
17 18
    end

19 20 21 22 23
    member do
      get :follow
    end
  end

Eugen Rochko's avatar
Eugen Rochko committed
24 25 26
  resource  :account
  resources :authorizations, only: [:destroy]

Eugen Rochko's avatar
Eugen Rochko committed
27 28
  root to: 'home#index'
end