Sha256: 21e37930585042d60f245f588e001cfe262d9fd007732ed0e29e61af50bca646

Contents?: true

Size: 339 Bytes

Versions: 21

Compression:

Stored size: 339 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
dashing-0.1.0 templates/project/config.ru