Was it fetch?!
This commit is contained in:
@@ -2,7 +2,7 @@ import { NEWSLETTER_API_TOKEN, NEWSLETTER_LIST_ID } from '$env/static/private'
|
||||
import type { RequestHandler } from './$types'
|
||||
import { error } from '@sveltejs/kit'
|
||||
|
||||
export const POST = (async ({ request }) => {
|
||||
export const POST = (async ({ request, fetch }) => {
|
||||
const data = await request.json()
|
||||
const { email } = data
|
||||
console.log('server:', data, email)
|
||||
|
||||
Reference in New Issue
Block a user