phpvms/app/Http/Controllers/Api/StatusController.php

25 lines
472 B
PHP
Raw Normal View History

2017-08-15 07:26:20 +08:00
<?php
namespace App\Http\Controllers\Api;
use App\Interfaces\Controller;
use PragmaRX\Version\Package\Facade as Version;
2017-08-15 07:26:20 +08:00
/**
* Class StatusController
* @package App\Http\Controllers\Api
*/
class StatusController extends Controller
2017-08-15 07:26:20 +08:00
{
2018-02-21 12:33:09 +08:00
/**
* @return \Illuminate\Http\JsonResponse
*/
2017-08-15 07:26:20 +08:00
public function status()
{
return response()->json([
'version' => Version::compact(),
'php' => PHP_VERSION,
]);
2017-08-15 07:26:20 +08:00
}
}