31 lines
577 B
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
namespace App\Http\Controllers\Api\Common;
2019-11-16 10:21:14 +03:00
use App\Abstracts\Http\ApiController;
2022-06-01 10:15:55 +03:00
use App\Utilities\Date;
2017-09-14 22:21:00 +03:00
class Ping extends ApiController
{
2021-01-12 15:24:57 +03:00
/**
* Instantiate a new controller instance.
*/
public function __construct()
{
// do nothing but override permissions
}
2017-09-14 22:21:00 +03:00
/**
* Responds with a status for heath check.
*
* @return \Illuminate\Http\JsonResponse
*/
2022-06-01 10:15:55 +03:00
public function pong()
2017-09-14 22:21:00 +03:00
{
2022-06-01 10:15:55 +03:00
return response()->json([
2017-09-14 22:21:00 +03:00
'status' => 'ok',
'timestamp' => Date::now(),
]);
}
}