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;
|
||||
|
||||
use PragmaRX\Version\Package\Facade as Version;
|
||||
use App\Http\Controllers\AppBaseController;
|
||||
|
||||
|
||||
@ -9,9 +10,9 @@ class StatusController extends AppBaseController
|
||||
{
|
||||
public function status()
|
||||
{
|
||||
return response()->json(
|
||||
['version' => ''],
|
||||
200
|
||||
);
|
||||
return response()->json([
|
||||
'version' => Version::compact(),
|
||||
'php' => PHP_VERSION,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user