enable webhook

master
TZGyn 10 months ago
parent febef8a08c
commit e629808825
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -6,9 +6,6 @@ import { z } from 'zod'
export const POST = async ({ locals, request }) => { export const POST = async ({ locals, request }) => {
const body = await request.json() const body = await request.json()
console.log(body)
return json({})
const form = z const form = z
.object({ .object({
key: z.string(), key: z.string(),
@ -21,7 +18,10 @@ export const POST = async ({ locals, request }) => {
}) })
.safeParse(body) .safeParse(body)
if (!form.success) return json({}, { status: 400 }) if (!form.success) {
console.log(form.error)
return json({}, { status: 400 })
}
// const apiKey = 'wrc1w54Zp5JAfXLxY2' // const apiKey = 'wrc1w54Zp5JAfXLxY2'
// const apiSecret = 'tY7oYPhwSE1gabFS4PmxtmbDOhkYWvPh0khf' // const apiSecret = 'tY7oYPhwSE1gabFS4PmxtmbDOhkYWvPh0khf'

Loading…
Cancel
Save