1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/app/middleware/heartbeat.rb
2015-10-14 12:30:00 +01:00

14 lines
220 B
Ruby

class Heartbeat
def initialize(app)
@app = app
end
def call(env)
if env['PATH_INFO'] == '/heartbeat'
[200, { 'Content-Type' => 'text/plain' }, ['OK']]
else
@app.call(env)
end
end
end