mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
ae9085b11f
Signed-off-by: snipe <snipe@snipe.net>
28 lines
541 B
PHP
28 lines
541 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
/**
|
|
* This controller provide the health route for
|
|
* the Snipe-IT Asset Management application.
|
|
*
|
|
* @version v1.0
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
*/
|
|
class HealthController extends BaseController
|
|
{
|
|
/**
|
|
* Returns a fixed JSON content ({ "status": "ok"}) which indicate the app is up and running
|
|
*/
|
|
public function get()
|
|
{
|
|
return response()->json([
|
|
'status' => 'ok',
|
|
]);
|
|
}
|
|
}
|