summaryrefslogtreecommitdiff
path: root/templates/project/config.ru
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-13 23:36:38 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-13 23:36:38 -0400
commit16f51fd9dc454b26d9866b080caa17ffe2f8ce27 (patch)
tree2c031e8c8e629bdf096b00cc445d04e7782af2c3 /templates/project/config.ru
parent41d8c33a6b87c948a7fe4ae5e53483d42fead422 (diff)
Updated to use sprockets! Ah, much cleaner.
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