first commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?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\Console;
|
||||
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+']);
|
||||
|
||||
// PC端
|
||||
Route::rule('pc/:any', function () {
|
||||
return view(app()->getRootPath() . 'public/pc/index.html');
|
||||
})->pattern(['any' => '\w+']);
|
||||
|
||||
//定时任务
|
||||
Route::rule('crontab', function () {
|
||||
Console::call('crontab');
|
||||
});
|
||||
|
||||
// 支付回调(免登录,供微信/支付宝/企业微信对外收款调用)
|
||||
Route::post('api/order/wechat-notify', 'app\adminapi\controller\order\WechatNotifyController@notify');
|
||||
Route::post('api/order/alipay-notify', 'app\adminapi\controller\order\AlipayNotifyController@notify');
|
||||
|
||||
// 腾讯云 TRTC 云端录制回调(免登录,控制台配置回调 URL;驼峰路径与控制台常见填法一致)
|
||||
Route::post('api/trtc/recording-notify', 'app\api\controller\TrtcController@recordingNotify');
|
||||
Route::post('api/trtc/recordingNotify', 'app\api\controller\TrtcController@recordingNotify');
|
||||
|
||||
// 企微客户联系回调路由定义在 app/api/route/app.php(多应用下 /api/* 请求只加载该目录,根目录 route/app.php 不生效)
|
||||
Reference in New Issue
Block a user