12 lines
322 B
Ruby
12 lines
322 B
Ruby
Rails.application.routes.draw do
|
|
devise_for :users, controllers: {
|
|
omniauth_callbacks: 'callbacks'
|
|
}
|
|
|
|
root to: 'pages#landing'
|
|
|
|
resources :transactions, only: [:index, :create]
|
|
resources :users, only: [:show, :index]
|
|
|
|
get 'datatables/:id' => 'datatables#transactions_for_user', as: "user_transactions"
|
|
end
|