mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-20 04:24:23 -08:00
d6ead5ae17
* Added health controller * Trying to move session middleware to web and api group to have health controller without session * Fix health route store the session Co-authored-by: Vincent Lainé <v.laine@dental-monitoring.com>
23 lines
492 B
PHP
23 lines
492 B
PHP
<?php
|
|
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
|
|
*/
|
|
public function get() {
|
|
return response()->json([
|
|
"status" => "ok"
|
|
]);
|
|
}
|
|
} |