summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-07-13 20:07:09 +0200
committervarac <varacanero@zeromail.org>2016-07-13 20:07:09 +0200
commit5d01197cf893d4a8c9a57f7c963f47393d34e157 (patch)
tree860e97c0af1ad8c7d4bd1aecb0b7e6658b312846 /config.ru
initial commit, import from pixelated_dashboard
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru23
1 files changed, 23 insertions, 0 deletions
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..67af9aa
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,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