|
|
|
@ -4,6 +4,7 @@ import { z } from 'zod'
|
|
|
|
|
|
|
|
|
|
|
|
export const POST = async ({ locals, request }) => {
|
|
|
|
export const POST = async ({ locals, request }) => {
|
|
|
|
const type = request.headers.get('Content-Type')
|
|
|
|
const type = request.headers.get('Content-Type')
|
|
|
|
|
|
|
|
console.log(type)
|
|
|
|
if (type !== 'application/json') return new Response()
|
|
|
|
if (type !== 'application/json') return new Response()
|
|
|
|
|
|
|
|
|
|
|
|
const body = await request.json()
|
|
|
|
const body = await request.json()
|
|
|
|
|