mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
Fourth piece of #419: a small in-code (not admin-authored) announcement list, target-scoped ("app"/"admin", "chooser" reserved but not wired since the landing page has no JS yet) and filterable by live server state via ShowWhile. First entry: the admin-area-gate heads-up, shown on the admin target while AdminAreaAuth is unset. GET /api/announcements?target=... and POST /api/announcements/{id}/dismiss are deliberately NOT behind BasicAuthAdmin — the whole point of the gate notice is to reach operators who haven't set up credentials yet, the exact audience an admin-only endpoint would exclude. The dismiss endpoint validates id against the known announcement list before it reaches RecordActivity, since this is the one call site where an id comes from an HTTP request rather than a compile-time constant. Updated the router snapshot (testdata/router_routes.txt) for the two new routes. Not wired into any UI yet — nothing calls these endpoints. Refs #419