fix(config): 将前端访问开关限制为仅控制首页
移除用户前端开关对订阅入口、用户 API 与访客接口的拦截, 关闭 `frontend_enable` 时仅让用户首页 `/` 返回空 404。 同时更新后台配置文案、测试用例与模块文档,明确 API、 订阅和节点接口保持原有访问边界。
This commit is contained in:
@@ -10,8 +10,7 @@ class PassportRoute
|
||||
public function map(Registrar $router)
|
||||
{
|
||||
$router->group([
|
||||
'prefix' => 'passport',
|
||||
'middleware' => 'user.frontend'
|
||||
'prefix' => 'passport'
|
||||
], function ($router) {
|
||||
// Auth
|
||||
$router->post('/auth/register', [AuthController::class, 'register']);
|
||||
|
||||
Reference in New Issue
Block a user