* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Illuminate\Support\Facades\Route; use Jiannei\Response\Laravel\Support\Facades\Response; /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It is a breeze. Simply tell Lumen the URIs it should respond to | and give it the Closure to call when that URI is requested. | */ Route::get('/', function () { $version = app()->version(); $app_name = config('app.name'); return Response::success(compact('version', 'app_name')); });