summaryrefslogtreecommitdiff
path: root/templates/project/config.ru
diff options
context:
space:
mode:
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