From 932c3e62238d4d9b425face6e681dba8007e2e3c Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 11 Oct 2024 23:22:08 -0300 Subject: [PATCH] Refactor newsletter API endpoint URL --- src/store/newsletter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/newsletter.ts b/src/store/newsletter.ts index 57e2502b..0ad9cc57 100644 --- a/src/store/newsletter.ts +++ b/src/store/newsletter.ts @@ -25,7 +25,7 @@ export const useNewsletterStore = defineStore('useNewsletterStore', { const baseUrl = import.meta.env.VITE_GRUDGET_ENDPOINT || null const newsletter = import.meta.env.VITE_GRUDGET_NEWSLETTER || null - const response = await ofetch(`${baseUrl}/newsletter/subscribers/`, { + const response = await ofetch(`${baseUrl}/subscriber/`, { method: 'POST', body: { email: email, newsletter: newsletter }, headers: {