feat: add dedicated watchlist download endpoint

This commit is contained in:
2026-07-01 01:43:57 +02:00
parent 72ee744161
commit 223c0fa89e
4 changed files with 52 additions and 4 deletions

View File

@@ -172,9 +172,9 @@ Configuration is loaded from environment variables, and a local `.env` file is r
`GET /api/public/users/{user_id}/watchlist` returns a versioned, agent-friendly JSON view of a
user's complete watchlist. It includes status summaries, episode progress,
added/completed/last-watched dates, and localized titles. Add `?download=1` to receive the same
response as a `watchlist-{user_id}.json` attachment; the watchlist page's export action uses this
URL.
added/completed/last-watched dates, and localized titles.
`GET /watchlist/export` downloads the current user's watchlist as `watchlist.json`.
This endpoint is intentionally unauthenticated. A deployment that should keep watchlist and
playback data private must restrict access to `/api/public/` at the network or reverse-proxy layer.