summaryrefslogtreecommitdiff
path: root/config.ru
blob: 67af9aaf81f08483c5613ad187412b8d076f3e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'dashing'

configure do
  if ENV.has_key?('PIX_AUTH_TOKEN')
    set :auth_token, ENV['PIX_AUTH_TOKEN']
  else
    set :auth_token, 'ie2Aex6ooLi4usi0ahngaht'
  end
  set :default_dashboard, 'default'

  helpers do
    def protected!
     # Put any authentication code you want in here.
     # This method is run before accessing any resource.
    end
  end
end

map Sinatra::Application.assets_prefix do
  run Sinatra::Application.sprockets
end

run Sinatra::Application