From 9343d2ea697f13e52e9199fce62a959f1954f580 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Mon, 30 Aug 2021 20:08:51 -0600 Subject: add chat handlers and only allow POST methods --- static/src/mailinglist/finalize.md | 2 +- static/src/mailinglist/unsubscribe.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'static/src/mailinglist') diff --git a/static/src/mailinglist/finalize.md b/static/src/mailinglist/finalize.md index 56878b9..a80809d 100644 --- a/static/src/mailinglist/finalize.md +++ b/static/src/mailinglist/finalize.md @@ -28,7 +28,7 @@ nofollow: true const api = await import("/assets/api.js"); - await api.call('POST', '/api/mailinglist/finalize', { + await api.call('/api/mailinglist/finalize', { body: { subToken }, }); diff --git a/static/src/mailinglist/unsubscribe.md b/static/src/mailinglist/unsubscribe.md index cacd212..f6600c9 100644 --- a/static/src/mailinglist/unsubscribe.md +++ b/static/src/mailinglist/unsubscribe.md @@ -27,7 +27,7 @@ nofollow: true const api = await import("/assets/api.js"); - await api.call('POST', '/api/mailinglist/unsubscribe', { + await api.call('/api/mailinglist/unsubscribe', { body: { unsubToken }, }); -- cgit v1.2.3