Sha256: cb4389c298bac759afc566a2db899b47ccbb918bda99703aab7510f0077f4cac

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

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.4.0 examples/rack/Parkfile