Sha256: 86e96a13ebad0b7cbdd6e5dc6d6fc1f2c213d161da56157d8cc8fdc431ca51fc

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

require 'rack'
require 'rack-slashenforce'

Rack::Grounds = Rack::Builder.new {
  use Rack::AppendTrailingSlash
  use Rack::Static, urls: [''], root: 'public', index: 'index.html'
  run -> { [404, { 'Content-Type' => 'text/plain' }, ['Not found']] }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grounds-0.0.1 lib/rack/grounds.rb