Sha256: 02eda1d0cd965184ed9c347c745bd69eb37c86f052cddf437eadbb01744697dd

Contents?: true

Size: 295 Bytes

Versions: 12

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

require "logster/middleware/viewer"

class Logster::Web
  class FourOhFour
    def call(env)
      [404, {}, ["not found"]]
    end
  end

  def self.call(env)
    @middleware ||= Logster::Middleware::Viewer.new(FourOhFour.new)
    @middleware.call(env)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
logster-2.20.0 lib/logster/web.rb
logster-2.19.1 lib/logster/web.rb
logster-2.19.0 lib/logster/web.rb
logster-2.18.1 lib/logster/web.rb
logster-2.18.0 lib/logster/web.rb
logster-2.17.1 lib/logster/web.rb
logster-2.17.0 lib/logster/web.rb
logster-2.16.0 lib/logster/web.rb
logster-2.15.0 lib/logster/web.rb
logster-2.14.0 lib/logster/web.rb
logster-2.13.1 lib/logster/web.rb
logster-2.13.0 lib/logster/web.rb