Class: AppStatus::StatusController

Inherits:
ApplicationController show all
Defined in:
app/controllers/app_status/status_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
8
9
10
11
# File 'app/controllers/app_status/status_controller.rb', line 3

def index
  @checks = CheckCollection.new
  @checks.evaluate!

  respond_to do |format|
    format.json { render json: @checks.as_json}
    format.html
  end
end