Skip to content

Commit c648119

Browse files
committed
update Readme
1 parent 883bd16 commit c648119

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,15 @@ npm run start
9797
### Algolia bump
9898

9999
`node index.js` - update apps and wallets algolia index every hour.
100+
101+
---
102+
103+
### MailerLite
104+
105+
### GET `/subscriber`
106+
107+
**200**: Returns the single subscriber
108+
109+
### POST `/group-add-subscriber`
110+
111+
**200**: Assigns a subscriber to the group with the given name.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ app.get("/subscriber", cache.serve(30), async (req, res) => {
7575
});
7676
});
7777

78-
app.put("/group-add-subscriber", cache.serve(30), async (req, res) => {
78+
app.post("/group-add-subscriber", cache.serve(30), async (req, res) => {
7979
const mailerLite = MailerLite(MAILERLITE_API_KEY);
8080
const {groupId, userID} = req.body;
8181
mailerLite

0 commit comments

Comments
 (0)