Implement ping/pong endpoint in API

This commit is contained in:
Thibault Jouan
2015-05-01 16:56:55 +00:00
parent cbacdd9fc1
commit c0b2621b2f
3 changed files with 18 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ module API
head :ok
end
def ping
render json: { pong: 'ok' }
end
def authenticate!
head :unauthorized if current_user.nil?
end