初始版本
This commit is contained in:
36
server/route/app.php
Executable file
36
server/route/app.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
use think\facade\Route;
|
||||
|
||||
//管理后台
|
||||
Route::rule('admin/:any', function () {
|
||||
return view(app()->getRootPath() . 'public/admin/index.html');
|
||||
})->pattern(['any' => '\w+']);
|
||||
|
||||
|
||||
//手机端
|
||||
Route::rule('mobile/:any', function () {
|
||||
return view(app()->getRootPath() . 'public/mobile/index.html');
|
||||
})->pattern(['any' => '\w+']);
|
||||
|
||||
//门店端
|
||||
Route::rule('shop/:any', function () {
|
||||
return view(app()->getRootPath() . 'public/shop/index.html');
|
||||
})->pattern(['any' => '\w+']);
|
||||
//技师端
|
||||
Route::rule('coach/:any', function () {
|
||||
return view(app()->getRootPath() . 'public/coach/index.html');
|
||||
})->pattern(['any' => '\w+']);
|
||||
|
||||
//定时任务
|
||||
Route::rule('crontab', function () {
|
||||
\think\facade\Console::call('crontab');
|
||||
});
|
||||
Reference in New Issue
Block a user