[更新]修改路由配置

This commit is contained in:
Anyon 2019-07-03 15:26:11 +08:00
parent 6fd8a9586b
commit 423d324135
2 changed files with 43 additions and 43 deletions

View File

@ -9,50 +9,50 @@
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | github开源项目https://github.com/zoujingli/ThinkAdmin
// | github开源项目https://github.com/zoujingli/framework
// +----------------------------------------------------------------------
use think\facade\Route;
return [];
/* 测试环境禁止操作路由绑定 */
Route::post('admin/user/pass', function () {
if (in_array(request()->rootDomain(), ['ctolog.com', 'thinkadmin.top'])) {
Route::post('admin/user/pass', function () {
return json(['code' => 0, 'info' => '测试环境禁修改用户密码!']);
});
Route::post('admin/index/pass', function () {
});
Route::post('admin/index/pass', function () {
return json(['code' => 0, 'info' => '测试环境禁修改用户密码!']);
});
Route::post('admin/config/info', function () {
});
Route::post('admin/config/info', function () {
return json(['code' => 0, 'info' => '测试环境禁修改系统配置操作!']);
});
Route::post('admin/config/file', function () {
});
Route::post('admin/config/file', function () {
return json(['code' => 0, 'info' => '测试环境禁修改文件配置操作!']);
});
Route::post('admin/menu/index', function () {
});
Route::post('admin/menu/index', function () {
return json(['code' => 0, 'info' => '测试环境禁排序菜单操作!']);
});
Route::post('admin/menu/add', function () {
});
Route::post('admin/menu/add', function () {
return json(['code' => 0, 'info' => '测试环境禁添加菜单操作!']);
});
Route::post('admin/menu/edit', function () {
});
Route::post('admin/menu/edit', function () {
return json(['code' => 0, 'info' => '测试环境禁编辑菜单操作!']);
});
Route::post('admin/menu/forbid', function () {
});
Route::post('admin/menu/forbid', function () {
return json(['code' => 0, 'info' => '测试环境禁止禁用菜单操作!']);
});
Route::post('admin/menu/del', function () {
});
Route::post('admin/menu/del', function () {
return json(['code' => 0, 'info' => '测试环境禁止删除菜单操作!']);
});
Route::post('admin/node/save', function () {
});
Route::post('admin/node/save', function () {
return json(['code' => 0, 'info' => '测试环境禁止修改节点数据操作!']);
});
Route::post('wechat/config/index', function () {
});
Route::post('wechat/config/index', function () {
return json(['code' => 0, 'info' => '测试环境禁止修改微信配置操作!']);
});
Route::post('wechat/config/options', function () {
});
Route::post('wechat/config/options', function () {
return json(['code' => 0, 'info' => '测试环境禁止修改微信配置操作!']);
});
Route::post('service/config/index', function () {
});
Route::post('service/config/index', function () {
return json(['code' => 0, 'info' => '测试环境禁止修改微信配置操作!']);
});
});
}