Sha256: 3fed2ef2cf5d404949acbd2f4597c5eaaca4bada587ee4a422d1b63c043965ac

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

require 'dashing'

configure do
  set :auth_token, 'YOUR_AUTH_TOKEN'

  # See http://www.sinatrarb.com/intro.html > Available Template Languages on
  # how to add additional template languages.
  set :template_languages, %i[html erb]

  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

1 entries across 1 versions & 1 rubygems

Version Path
smashing-1.1.0 templates/project/config.ru