новости

This commit is contained in:
2026-03-22 17:36:24 +04:00
parent 4edfb52396
commit 48ff9b63d8
9 changed files with 495 additions and 65 deletions
+8
View File
@@ -31,6 +31,7 @@ The launcher uses these endpoints from `openapi.json`:
1. `POST /api/launcher/login`
2. `GET /api/launcher/manifest`
3. `GET /api/launcher/download/{path}`
4. `GET /api/launcher/news`
Authentication sequence:
@@ -58,6 +59,13 @@ File download sequence:
6. Downloaded file is verified against manifest `sha256`.
7. Temporary file replaces the destination file only after successful verify.
News sequence:
1. After the launcher reaches the authenticated home screen, it requests `GET /api/launcher/news`.
2. The response payload is read from the top-level `data` array.
3. Each news item provides `id`, `title`, `body`, optional `image_url`, and `created_at`.
4. News failures do not block patching or play flow; the launcher shows a local error state only inside the news panel.
## Installation Directory Rules
The user selects a single installation root directory.