Skip to content

Commit

Permalink
Refactor newsletter API endpoint URL
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfredinni committed Oct 12, 2024
1 parent 295a0ed commit 932c3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/newsletter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 932c3e6

Please sign in to comment.