public function index() { $routes = \App\Route::get(); return response()->json($routes); }
<?php use App\App; use App\Route; use App\Authentication\Authentication; include './config.php'; include './autoload.php'; App::begin(); Authentication::auth(); Route::get(); App::end();