Sha256: 1955973f576262ed0b37331551ea8eb421e695e332e29f8f49d300a4b69779b9

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

require 'sinatra'
require 'vxod'
require 'slim'
require 'sass'
require 'config_env'
require 'mongoid'
require 'omniauth'
require 'omniauth-twitter'
require 'omniauth-vkontakte'
require 'omniauth-facebook'
require 'omniauth-google-oauth2'
require 'omniauth-github'


config_env = "#{__dir__}/config_env.rb"
require config_env if File.exists?(config_env)

require_relative 'config_app'

helpers do
  def vxod 
    @vxod = Vxod.api(self)
  end
end

get '/' do
  'Hello please try protected page at <a id="secret" href="/secret">/secret</a>'
end

get '/secret' do
  vxod.required
  slim :secret
end

template :secret do
%q(

p 
  | I am secret page for 
  strong = vxod.user.email
p: a id='logout' href='/logout' Logout

)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vxod-0.0.2 example/app.rb