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
12
13
14
# File 'app/controllers/app_status/status_controller.rb', line 3

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

  json_data = @checks.as_json
  json_data['more_info'] = app_status_url

  respond_to do |format|
    format.json { render json: json_data}
    format.html
  end
end