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;
|
|
|
|
|
|
|
|
/**
|
2024-07-04 12:49:22 -07:00
|
|
|
* This controller provide the health route for
|
2021-01-26 12:10:54 -08:00
|
|
|
* the Snipe-IT Asset Management application.
|
|
|
|
*
|
2024-07-04 12:49:22 -07:00
|
|
|
* @version v1.0
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
|
2021-01-26 12:10:54 -08:00
|
|
|
*/
|
|
|
|
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
|
|
|
}
|