(email: string)
| 1 | 'use server' |
| 2 | |
| 3 | export async function addEmail(email: string) { |
| 4 | const mail_base = process.env.USER_EMAIL_SECRET |
| 5 | await fetch(mail_base + '/addEmail?email=' + email, { |
| 6 | method: 'GET', |
| 7 | headers: { |
| 8 | 'Content-Type': 'application/json', |
| 9 | }, |
| 10 | }) |
| 11 | } |