Rails.application.routes.draw do

  resource :vpn_sessions, only: [:new, :create, :show]
  # Account section
  resource :account, only: [:show]

  # Sessions
  resources :sessions, only: [:new, :create]
  get "sessions/destroy"
  get "sessions/two_factor"

  post "authy/callback" => 'authy#callback'
  get "authy/status" => 'authy#one_touch_status'
  get "authy/live_status" => 'authy#one_touch_status_live'
  post "authy/send_token"
  post "authy/verify"

  # Create users
  resources :users, only: [:new, :create]


# resources :vpnsessions, only: [:new, :create]
# Home page
root 'main#index'
end
