mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-15 20:12:49 +00:00
25 lines
742 B
PHP
25 lines
742 B
PHP
<?php
|
|
|
|
use think\facade\Route;
|
|
Route::domain('install.php', ':\app\install\controller');
|
|
// 访问首页自动跳转到admin
|
|
Route::rule('/', function () {
|
|
return redirect('/web');
|
|
});
|
|
// 管理后台
|
|
Route::rule('admin/:any', function () {
|
|
return view(app()->getRootPath() . 'public/admin/index.html');
|
|
})->pattern(['any' => '\w+']);
|
|
// 手机端
|
|
Route::rule('wap/:any', function () {
|
|
return view(app()->getRootPath() . 'public/wap/index.html');
|
|
})->pattern(['any' => '\w+']);
|
|
// 手机端
|
|
Route::rule('web/:any', function () {
|
|
return view(app()->getRootPath() . 'public/web/index.html');
|
|
})->pattern(['any' => '\w+']);
|
|
//用于公众号授权证书
|
|
Route::any('MP_verify_<name>.txt', function ($name) {
|
|
echo $name;
|
|
});
|