Skip to content

Commit 932c3e6

Browse files
committed
Refactor newsletter API endpoint URL
1 parent 295a0ed commit 932c3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/newsletter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const useNewsletterStore = defineStore('useNewsletterStore', {
2525
const baseUrl = import.meta.env.VITE_GRUDGET_ENDPOINT || null
2626
const newsletter = import.meta.env.VITE_GRUDGET_NEWSLETTER || null
2727

28-
const response = await ofetch(`${baseUrl}/newsletter/subscribers/`, {
28+
const response = await ofetch(`${baseUrl}/subscriber/`, {
2929
method: 'POST',
3030
body: { email: email, newsletter: newsletter },
3131
headers: {

0 commit comments

Comments
 (0)