import{getNewsletterStatus as e,subscribeToNewsletter as t,unsubscribeFromNewsletter as n}from"../controllers/newsletter.controller.mjs";const r=`/api/newsletter`,i=()=>`${process.env.BACKEND_URL}${r}`,a=()=>({subscribeToNewsletter:{urlModel:`/subscribe`,url:`${i()}/subscribe`,method:`POST`},unsubscribeFromNewsletter:{urlModel:`/unsubscribe`,url:`${i()}/unsubscribe`,method:`POST`},getNewsletterStatus:{urlModel:`/status`,url:`${i()}/status`,method:`GET`}}),o=async r=>{r.post(a().subscribeToNewsletter.urlModel,t),r.post(a().unsubscribeFromNewsletter.urlModel,n),r.get(a().getNewsletterStatus.urlModel,e)};export{a as getNewsletterRoutes,r as newsletterRoute,o as newsletterRouter};
//# sourceMappingURL=newsletter.routes.mjs.map