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