summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/forms/subscription.actions.js
blob: 2d89d29486347f95353a6331cbc27acc14c521f8 (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.append('email', email)
  data.append('lists[]', 'eflux')
  return fetch(SUBSCRIBE_URL, {
    method: 'POST',
    body: data,
  })
  .then(res => res.json())
  .then(res => res)
  .catch(err => err)
}