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:42 +00:00
parent bd5f92c7b3
commit 8cbf72ea11
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
import { useState } from "react"
import { Button } from "@/components/ui/button"
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe"
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
const LIST_UUID = "0a4810a2-13c7-4ba9-a65b-bc2251283298" // Post-Appitalism list
export function NewsletterSignup() {
@ -19,7 +19,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",