Class: Fettle::HealthController

Inherits:
ApplicationController show all
Defined in:
app/controllers/fettle/health_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
11
12
# File 'app/controllers/fettle/health_controller.rb', line 5

def show
  result = Checker.run(tag: params[:tag])

  render(
    json: { healthy: result.healthy? },
    status: result.status_code
  )
end