summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/forms/subscription.actions.js
blob: f1257b2e3cdb546ba3a1f339864dc92e4133b0c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const SUBSCRIBE_URL = "https://editor.e-flux-systems.com/subscribe"

export const subscribe = email => {
  const data = new FormData()
  data.add('email', email)
  data.add('lists[]', 'eflux')
  return fetch(SUBSCRIBE_URL, {
    method: 'POST',
    body: data,
  })
  .then(res => res.json())
  .then(res => res)
  .catch(err => err)
}