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

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

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

11
  resources :friends, only: :index do
12 13 14 15 16 17
    collection do
      get :status
      get :results
      get :domains
    end

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

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

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