Sha256: 8cbd02606f91e433039be8f3f9e56934508c286f67a297009bc5b0c3a4682053

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

require 'middleware'

module CottonTail
  # Top level namespace for Middleware
  module Middleware
    autoload :Router, 'cotton_tail/middleware/router'

    def self.default_stack(app)
      ::Middleware::Builder.new do |b|
        b.use Router, handlers: app.routes.handlers
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cotton-tail-0.7.0 lib/cotton_tail/middleware.rb
cotton-tail-0.6.1 lib/cotton_tail/middleware.rb
cotton-tail-0.6.0 lib/cotton_tail/middleware.rb
cotton-tail-0.5.0 lib/cotton_tail/middleware.rb