zx/route/merchant/notLogin.php

34 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2024-07-02 15:32:59 +08:00
<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
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,
]);