Add ping route
This commit is contained in:
parent
bb116a68dd
commit
16ca407542
2 changed files with 13 additions and 0 deletions
11
app/controllers/ping_controller.rb
Normal file
11
app/controllers/ping_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue