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
bd5f92c7b3
commit
8cbf72ea11
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue