import { post } from "@bradgarropy/http" ; import { VercelRequest , VercelResponse } from "@vercel/node" ; const handler = async ( req , res ) => { const apiKey = process . env . REVUE_API_KEY ; const subscriber = await post ( "https://www.getrevue.co/api/v2/subscribers" , { headers : { Authorization : `Token ${ apiKey }` , } , body : { email : req . body . email , double_opt_in : false , } , } ) ; res . status ( 200 ) . json ( subscriber ) ; } ; export default handler ;