// +---------------------------------------------------------------------- use think\facade\Route; use app\common\middleware\AllowOriginMiddleware; //不带token认证 Route::group(function () { Route::get('test', 'merchant.system.admin.Login/test'); //验证码 Route::get('captcha', 'merchant.system.admin.Login/getCaptcha'); //登录 Route::post('login', 'merchant.system.admin.Login/login'); Route::post('ajstatus', 'merchant.system.admin.Login/ajCaptchaStatus'); Route::get('login_config', 'admin.Common/loginConfig'); //滑块验证码 Route::get('ajcaptcha', 'api.Auth/ajcaptcha'); Route::post('ajcheck', 'api.Auth/ajcheck'); })->middleware(AllowOriginMiddleware::class)->option([ '_auth' => false, ]);