demarches-normaliennes/app/controllers/ping_controller.rb
gregoirenovel 9764a0af8d Add back content_type
I forgot to specify it in
7ccae2c4f1
2018-02-06 14:07:20 +01:00

11 lines
286 B
Ruby

class PingController < ApplicationController
def index
Rails.logger.silence do
if (ActiveRecord::Base.connected?)
head :ok, content_type: "application/json"
else
head :internal_server_error, content_type: "application/json"
end
end
end
end