tab/config/routes.rb
David Vandorpe 7e07debc91
Revert "Fix for WiNA"
This reverts commit eae4a3e99c.
2018-03-21 19:40:03 +01:00

28 lines
704 B
Ruby

Rails.application.routes.draw do
devise_for :users, controllers: {
omniauth_callbacks: 'callbacks'
}
devise_scope :user do
delete '/sign_out', to: 'devise/sessions#destroy'
end
authenticated :user do
root 'pages#landing', as: :authenticated_root
end
root to: 'pages#sign_in_page'
resources :transactions, only: [:index, :create]
resources :users, only: [:index, :show] do
resources :requests, only: [:index], shallow: true do
post :confirm
post :decline
end
resources :notifications, only: [:index], shallow: true do
post :read
end
end
get 'datatables/:id' => 'datatables#transactions_for_user', as: "user_transactions"
end