路由封装
This commit is contained in:
14
routes/api.php
Normal file
14
routes/api.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
use App\Service\UtilsService;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
/**
|
||||
* 自动注册路由
|
||||
*/
|
||||
UtilsService::class::getInstance()->autoRouteRegister([
|
||||
]);
|
||||
Reference in New Issue
Block a user