api: GET /api/auth/me 当前用户端点; README

This commit is contained in:
lou
2026-08-10 15:36:36 +08:00
parent 6b0d163ac0
commit 4be951fe4a
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ SZ_TOKEN=你的token python3 main.py # 默认 0.0.0.0:8000
```
POST /api/auth/register 注册账号 {username, token}
POST /api/auth/login 登录 {username, token}
GET /api/auth/me 当前用户 (token 验证)
POST /api/auth/logout 注销 (token 失效)
POST /api/transfer/init 建任务 {transfer_id}
PUT /api/transfer/{id}/chunk/{n} 上传单卷密文 409 = 坏卷