demarches-normaliennes/app/controllers/ping_controller.rb

12 lines
286 B
Ruby
Raw Normal View History

2016-06-01 15:07:27 +02:00
class PingController < ApplicationController
def index
2016-07-06 10:06:28 +02:00
Rails.logger.silence do
if (ActiveRecord::Base.connected?)
head :ok, content_type: "application/json"
2016-07-06 10:06:28 +02:00
else
head :internal_server_error, content_type: "application/json"
2016-07-06 10:06:28 +02:00
end
2016-06-01 15:07:27 +02:00
end
end
end