2021-01-26 12:10:54 -08:00
|
|
|
<?php
|
2021-06-10 13:15:52 -07:00
|
|
|
|
2021-01-26 12:10:54 -08:00
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This controller provide the healthz route for
|
|
|
|
* the Snipe-IT Asset Management application.
|
|
|
|
*
|
|
|
|
* @version v1.0
|
|
|
|
*/
|
|
|
|
class HealthController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns a fixed JSON content ({ "status": "ok"}) which indicate the app is up and running
|
|
|
|
*/
|
2021-06-10 13:15:52 -07:00
|
|
|
public function get()
|
|
|
|
{
|
2021-01-26 12:10:54 -08:00
|
|
|
return response()->json([
|
2021-06-10 13:15:52 -07:00
|
|
|
'status' => 'ok',
|
2021-01-26 12:10:54 -08:00
|
|
|
]);
|
|
|
|
}
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|