路由封装

This commit is contained in:
2025-05-05 08:15:50 +08:00
parent 0bfe7786d3
commit db54446f8b
4 changed files with 536 additions and 2 deletions

14
routes/api.php Normal file
View 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([
]);