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:
Jeff Emmett 2026-02-03 00:53:44 +00:00
parent 55fb734708
commit dfabe64fe1
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
import { useState } from "react" import { useState } from "react"
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe" const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
const LIST_UUID = "3856d3c3-fbae-452d-acb1-523ab7932ceb" // Psilo Cybernetics list const LIST_UUID = "3856d3c3-fbae-452d-acb1-523ab7932ceb" // Psilo Cybernetics list
export function NewsletterSignup() { export function NewsletterSignup() {
@ -18,7 +18,7 @@ export function NewsletterSignup() {
setStatus("loading") setStatus("loading")
try { try {
const response = await fetch(`${NEWSLETTER_API}/subscribe`, { const response = await fetch(NEWSLETTER_API, {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",