demarches-normaliennes/app/controllers/ping_controller.rb
Guillaume Lazzara 16ca407542 Add ping route
2016-06-01 15:07:34 +02:00

11 lines
273 B
Ruby

class PingController < ApplicationController
def index
if (ActiveRecord::Base.connected?)
render nothing: true, status: 200, content_type: "application/json"
else
render nothing: true, status: 500, content_type: "application/json"
end
end
end