Add api/status call with vms and php versions
This commit is contained in:
parent
f809381b25
commit
d04c11f660
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers\Api;
|
namespace App\Http\Controllers\Api;
|
||||||
|
|
||||||
|
use PragmaRX\Version\Package\Facade as Version;
|
||||||
use App\Http\Controllers\AppBaseController;
|
use App\Http\Controllers\AppBaseController;
|
||||||
|
|
||||||
|
|
||||||
@ -9,9 +10,9 @@ class StatusController extends AppBaseController
|
|||||||
{
|
{
|
||||||
public function status()
|
public function status()
|
||||||
{
|
{
|
||||||
return response()->json(
|
return response()->json([
|
||||||
['version' => ''],
|
'version' => Version::compact(),
|
||||||
200
|
'php' => PHP_VERSION,
|
||||||
);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user