akaunting/app/Http/Controllers/Api/Common/Ping.php

31 lines
577 B
PHP
Raw Normal View History

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