summaryrefslogtreecommitdiff
path: root/templates/project/config.ru
blob: 6e1076a031f44c619db9d976654961f0c8fe729d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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