20,359
社区成员
发帖
与我相关
我的任务
分享
//管理后台路由
App::get('route')->get('api', function () {
});
use think\Route;
return [
'tj' => 'api/index/tuijian',
'category' => 'api/index/category',
'detail' => 'api/index/detail',
'search' => 'api/index/search',
'login' => 'api/index/wxlogin',
];
我用的是混合路由模式,但是我访问/admin.php也就是Admin模块的时候就会提示“模块不存在:api”,我也不知道这么说对不对