Sha256: b997e675027d22a85af73c7337beaca34e66329f0a7ce8a2dc5be9876d014245
Contents?: true
Size: 341 Bytes
Versions: 21
Compression:
Stored size: 341 Bytes
Contents
module Napa class Middleware class AppMonitor def initialize(app) @app = app end def call(env) if env['REQUEST_PATH'] == '/health' [200, { 'Content-type' => 'application/json' }, [Napa::Identity.health.to_json]] else @app.call(env) end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems