From 780984064fb134333c9438e928465e18909e2001 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 30 Nov 2026 10:18:11 +0100 Subject: [PATCH] Write the lead's lines and answers for the picks routes into the design The operator's symptom of 2026-11-30: the live picker showed two HTTP 404 errors, one for circuits/photos.json and one for seasons/photos.json, each with a "Load it from disk" box. The page read the picks relative to itself, and the API serves only /examples/. These are the lead's lines and answers of 2026-11-30, written into Picking photos. The API serves both picks files, read-only, as the poster service has them loaded, at /picks/circuits.json and /picks/seasons.json: the notes first, then the entries it draws from, a refused entry left out. Both routes have the CORS of every route and, like the other JSON routes, no Cache-Control (answer Q1). The picker reads them from the API base and falls back to the repository's files only on file: or a loopback host: localhost, 127.0.0.1, [::1] (answer Q2). Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W --- docs/posters.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/posters.md b/docs/posters.md index 3b6c147..4b2c638 100644 --- a/docs/posters.md +++ b/docs/posters.md @@ -133,6 +133,13 @@ An entry holds the photo fields (`file`, the Commons title without "File:"; `lic `date`, `YYYY[-MM[-DD]]`), `"use": "map"`, or both. A key starting with `$` is a note and is skipped. Refused and logged when read: an unknown `use`, incomplete photo fields, an entry with neither, a licence that is not free. +The API serves both files, read-only, as the poster service has them loaded: `/picks/circuits.json` and +`/picks/seasons.json` answer the notes first, then the entries it draws from (a refused entry is left out), with the +CORS of every route and, like the other JSON routes, no `Cache-Control`; the root route lists both. The picker reads the picks +there first, from the API its site picks. Only a page opened from a working copy (from disk, or on a loopback host: +`localhost`, `127.0.0.1`, `[::1]`) falls back to the repository's files when the API does not answer them; anywhere +else a failure says which address failed and why. + ## Licences, stated - On every picture: the credit line of each source it was made from, joined with " ยท ", at least 12 px high