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