Add API authenticated ping resource
This commit is contained in:
@@ -29,7 +29,11 @@ module API
|
||||
end
|
||||
|
||||
def ping
|
||||
render json: { pong: true }
|
||||
ping_response
|
||||
end
|
||||
|
||||
def ping_auth
|
||||
ping_response
|
||||
end
|
||||
|
||||
def authenticate!
|
||||
@@ -43,5 +47,12 @@ module API
|
||||
head :not_acceptable, content_type: 'application/json'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def ping_response
|
||||
render json: { pong: true }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user