fix: correct newsletter API endpoint
Changed from /api/subscribe/subscribe to /subscribe to match the updated newsletter-api routing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e2a17a38b9
commit
87023d8579
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { useState } from "react"
|
||||
|
||||
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe"
|
||||
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
|
||||
const LIST_UUID = "df598d1a-4bed-4a8b-8c36-a5a6346febf0" // Trippin list
|
||||
|
||||
export function NewsletterSignup() {
|
||||
|
|
@ -18,7 +18,7 @@ export function NewsletterSignup() {
|
|||
setStatus("loading")
|
||||
|
||||
try {
|
||||
const response = await fetch(`${NEWSLETTER_API}/subscribe`, {
|
||||
const response = await fetch(NEWSLETTER_API, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
|
|
|||
Loading…
Reference in New Issue