我使用了多應(yīng)用目錄設(shè)計(jì)
app下面有api應(yīng)用,admin應(yīng)用,app下面沒有controller 只有2個(gè)子應(yīng)用
app下面有全局配置 config/route.php
為何我在config/route.php 定義的 /test3 總是會(huì)匹配到 / 路由去?
以下是config/route.php內(nèi)容
\Webman\Route::get('/', function(){
return (new Response)->file(一個(gè)vue打包好的項(xiàng)目的index.html,在app/public目錄下);
});
\Webman\Route::get('/test3', [\app\admin\controller\Index::class, 'index');