Sha256: 290f1bce1e3465751c806fed036ec5f759aab889ec8c85a6f6a14cc0e64d0fc9

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

require 'parklife'
require 'rack'

app = Proc.new { |env|
  request = Rack::Request.new(env)

  [
    200,
    { 'Content-Type' => 'text/html' },
    ["Served from #{request.path}"]
  ]
}

Parklife.application.configure do |config|
  config.app = app
end

Parklife.application.routes do
  root
  get 'foo'
  get 'bar'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parklife-0.3.0 examples/rack/Parkfile