fix(config): 将前端访问开关限制为仅控制首页

移除用户前端开关对订阅入口、用户 API 与访客接口的拦截,
关闭 `frontend_enable` 时仅让用户首页 `/` 返回空 404。

同时更新后台配置文案、测试用例与模块文档,明确 API、
订阅和节点接口保持原有访问边界。
This commit is contained in:
yinjianm
2026-04-29 16:49:11 +08:00
parent 7a1cba4553
commit f70dbe4378
15 changed files with 39 additions and 33 deletions
+1 -2
View File
@@ -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']);