summaryrefslogtreecommitdiff
path: root/templates/project/config.ru
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-08-15 14:14:32 +0200
committervarac <varacanero@zeromail.org>2016-08-15 14:14:32 +0200
commit21a91cbc9681a2f3f4615e7e467febf1c8f4f6e6 (patch)
treeef26732b75858c5fb17925bc861f1ee8b4c43bf2 /templates/project/config.ru
parente56e58562bd1972df8e8d386b30175f6b12430ac (diff)
parented5463dce052852a5ace2d11a0265fff2244e60e (diff)
Merge tag 'v1.3.6' into dashing_io
Diffstat (limited to 'templates/project/config.ru')
-rw-r--r--templates/project/config.ru18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/project/config.ru b/templates/project/config.ru
new file mode 100644
index 0000000..624244e
--- /dev/null
+++ b/templates/project/config.ru
@@ -0,0 +1,18 @@
+require 'dashing'
+
+configure do
+ set :auth_token, 'YOUR_AUTH_TOKEN'
+
+ 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