fix: set correct type

This commit is contained in:
kolaente 2024-06-27 21:30:34 +02:00
parent 56fa212fc2
commit 7910b43d26
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -1,12 +1,9 @@
import type {APIContext} from 'astro'
import {TURNSTILE_SECRET} from 'astro:env/server'
const LIST_ID = 'f0bc9ec2-56a4-48c8-baad-7a31b137484e'
interface FullRequestInput {
request: Request
}
export async function POST({request}: FullRequestInput) {
export async function POST({request}: APIContext) {
const body = await request.formData()
// Turnstile injects a token in "cf-turnstile-response".