Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
cosmic band site signup route - for article
// routes/index.js'/signup', (req, res) => {
const email =`https://${process.env.MAILCHIMP_DC}${process.env.MAILCHIMP_LIST_ID}/members/`, {
auth: {
url: `https://${process.env.MAILCHIMP_DC}`,
user: `anystring:${process.env.MAILCHIMP_KEY}`
body: {
"email_address": email,
"status": "subscribed"
}).then(success => {
}).catch(err => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.