lib/napa/middleware/app_monitor.rb in napa-0.1.26 vs lib/napa/middleware/app_monitor.rb in napa-0.1.28

- old
+ new

@@ -4,10 +4,10 @@ def initialize(app) @app = app end def call(env) - if env['REQUEST_PATH'] == '/health' + if ["/health", "/health.json"].include? env['REQUEST_PATH'] [200, { 'Content-type' => 'application/json' }, [Napa::Identity.health.to_json]] else @app.call(env) end end