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.ru11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/project/config.ru b/templates/project/config.ru
index a3a74de..6e1076a 100644
--- a/templates/project/config.ru
+++ b/templates/project/config.ru
@@ -2,6 +2,17 @@ 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 \ No newline at end of file