2021-01-12 15:24:57 +03:00

34 lines
619 B
PHP

<?php
namespace App\Http\Controllers\Api\Common;
use App\Abstracts\Http\ApiController;
use Date;
use Dingo\Api\Routing\Helpers;
class Ping extends ApiController
{
use Helpers;
/**
* Instantiate a new controller instance.
*/
public function __construct()
{
// do nothing but override permissions
}
/**
* Responds with a status for heath check.
*
* @return \Illuminate\Http\JsonResponse
*/
public function index()
{
return $this->response->array([
'status' => 'ok',
'timestamp' => Date::now(),
]);
}
}