Add api/status call with vms and php versions

This commit is contained in:
Nabeel Shahzad 2017-12-28 22:49:47 -06:00
parent f809381b25
commit d04c11f660

View File

@ -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,
); ]);
} }
} }