summaryrefslogtreecommitdiff
path: root/static/src/mailinglist
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-08-30 20:08:51 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-08-30 20:44:45 -0600
commit9343d2ea697f13e52e9199fce62a959f1954f580 (patch)
treee1e36e330a3c9891bfd8a625229a9b417ad89afa /static/src/mailinglist
parent3e9a17abb9a9d63af3c260fba9dc404dd9c59ade (diff)
add chat handlers and only allow POST methods
Diffstat (limited to 'static/src/mailinglist')
-rw-r--r--static/src/mailinglist/finalize.md2
-rw-r--r--static/src/mailinglist/unsubscribe.md2
2 files changed, 2 insertions, 2 deletions
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 },
});