Sha256: 85ecfcb4390bf8e236d1cc2b04c192ac1442d821ca0e79e2c5d7d16aef821794
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
napa-0.1.2 | lib/napa/middleware/app_monitor.rb |
napa-0.1.1 | lib/napa/middleware/app_monitor.rb |
napa-0.1.0 | lib/napa/middleware/app_monitor.rb |