// +---------------------------------------------------------------------- use think\facade\Route; // 微信接口路由 Route::get('index/wechat/index', 'index/wechat/index'); Route::post('index/wechat/index', 'index/wechat/index'); Route::get('index/wechat/test', 'index/wechat/test'); Route::get('index/wechat/getLoginTicket', 'index/wechat/getLoginTicket'); Route::post('index/wechat/checkLoginStatus', 'index/wechat/checkLoginStatus'); Route::post('index/wechat/reGenerateQrcode', 'index/wechat/reGenerateQrcode'); Route::get('index/wechat/testWechat', 'index/wechat/testWechat'); Route::post('index/wechat/testWechat', 'index/wechat/testWechat'); // API路由组 Route::group('api', function () { // 管理员登录 Route::post('admin/login', 'api/Admin/login'); // 管理员相关接口 Route::get('admin/info', 'api/Admin/info'); Route::post('admin/logout', 'api/Admin/logout'); Route::post('admin/change-password', 'api/Admin/changePassword'); Route::get('admin/menus', 'api/Admin/menus'); });