tab/config/routes.rb

30 lines
737 B
Ruby
Raw Normal View History

2015-09-07 11:44:48 +02:00
Rails.application.routes.draw do
devise_for :users, controllers: {
omniauth_callbacks: 'callbacks'
}
2015-09-08 13:34:29 +02:00
devise_scope :user do
delete '/sign_out', to: 'devise/sessions#destroy'
end
2017-01-11 21:18:23 +01:00
authenticated :user do
root 'pages#landing', as: :authenticated_root
end
2017-01-14 16:22:44 +01:00
root to: 'pages#sign_in_page'
2015-09-08 15:16:08 +02:00
2015-09-11 13:16:53 +02:00
resources :transactions, only: [:index, :create]
2017-01-09 15:46:43 +01:00
resources :users, only: [:index, :show] do
2017-01-09 16:22:58 +01:00
resources :requests, only: [:index], shallow: true do
2017-01-09 15:46:43 +01:00
post :confirm
post :decline
end
2017-01-09 16:22:58 +01:00
resources :notifications, only: [:index], shallow: true do
post :read
end
2018-06-20 19:28:01 +02:00
post :reset_key, on: :member
2017-01-09 15:46:43 +01:00
end
get 'datatables/:id' => 'datatables#transactions_for_user', as: "user_transactions"
2015-09-07 11:44:48 +02:00
end