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:31 +00:00
parent 0ee8179093
commit 5a8782062d
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 = "0c541da4-3f04-4e72-978a-5a328b43c995" // Alltornet 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",