Nouveautés dans l'app, et « Tout effacer » synchronisé : cet appareil ou partout (2d)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-23 11:46:59 +01:00
co-authored by Claude Opus 5.5
parent 0ea0ea109f
commit 8ebdca0c30
21 changed files with 418 additions and 23 deletions
+2
View File
@@ -120,6 +120,8 @@ export function createApp(options) {
const body = await readJson(req, RELAY_BODY_BYTES);
return sendJson(res, 200, await relay.append(id, token, body));
}
// « Tout effacer partout » : le journal est vidé, les autres appareils l'apprennent.
if (req.method === "DELETE") return sendJson(res, 200, await relay.erase(id, token));
throw new HttpError(405, "method_not_allowed");
}
throw new HttpError(404, "not_found", "Adresse inconnue.");