baymac / baymac.io

⚡️ [WIP] My website with Next.js, CSS, Remark and Vercel.
https://test.baymac.io
0 stars 0 forks source link

Add unsubscribe api route #83

Closed baymac closed 3 years ago

baymac commented 3 years ago
  1. Send email with unsubscribe link with query param as user id
  2. Add api route for unsubscribe
  3. Fetch user details
  4. If user exists remove user from db (also add them to unsubscribers collection)