Sha256: 8f4262dd6e88625f0bb772d24e563a7ded98a17033e65761ccc8eee1c619eec3
Contents?: true
Size: 502 Bytes
Versions: 5
Compression:
Stored size: 502 Bytes
Contents
require 'tomograph' require 'esplanade/request' require 'esplanade/response' module Esplanade class Middleware def initialize(app) @app = app @documentation = Tomograph::Tomogram.new( prefix: Esplanade.configuration.prefix, apib_path: Esplanade.configuration.apib_path, drafter_yaml_path: Esplanade.configuration.drafter_yaml_path ) end def call(env) status, headers, body = @app.call(env) [status, headers, body] end end end
Version data entries
5 entries across 5 versions & 1 rubygems