mailship/test
mplorentz 5abec46cb7 Make subscription upsert idempotent via PUT
Switch the subscribe endpoint from POST to an idempotent PUT so clients can
always upsert without a stateful lookup first.

- Add GET /subscription/email?pubkey= lookup so clients can avoid re-POSTing.
- insertSubscription no longer clears confirmed_at unless the email address
  changes; a frequency change keeps the existing confirmation.
- registerSubscription only sends a confirmation email when the subscription
  is new, unconfirmed, or the email address changed.
- Update integration test and README for the PUT endpoint.
2026-09-03 11:47:21 -04:00
..
integration.sh Make subscription upsert idempotent via PUT 2026-09-03 11:47:21 -04:00
normalize-relay-url.test.js test: add failing test for normalizeRelayUrl(undefined) crash 2026-08-25 09:29:29 -04:00
web-ui.test.js fix: guard normalizeRelayUrl against undefined env var 2026-08-24 18:21:00 -04:00