Fix: 提示词, 竞赛数据接口在管理员模式下转为公开 (#607)

* 提示词, 竞赛数据接口在管理员模式下转为公开

* Fix "go vet" error
This commit is contained in:
Burt
2025-11-06 20:42:43 +08:00
committed by GitHub
parent cb5edffe03
commit fce3441aff
5 changed files with 23 additions and 32 deletions

View File

@@ -252,7 +252,6 @@ For self-hosted or single-tenant setups, NOFX supports a strict admin-only mode
- `GET /api/health`
- `GET /api/config`
- `POST /api/admin-login`
- Registration is gated by `allow_registration` in `config.json` (default: `true`). When `admin_mode=true`, registration is blocked regardless of this flag.
- Logout invalidates the current token via an in-memory blacklist (sufficient for single instance; use Redis for multi-instance see Notes).
### Quick setup