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. |
||
|---|---|---|
| .. | ||
| integration.sh | ||
| normalize-relay-url.test.js | ||
| web-ui.test.js | ||