import sql from "~/server/components/postgres"; export default defineEventHandler(async (event) => { const body = await readBody(event); /* const userToken = getCookie(event, "token"); if (!userToken) { return { error: "ERR_NOT_ALLOWED", }; } const checkUserToken = await sql` select * from usertokens where token=${userToken} `; if (checkUserToken.length === 0) { return { error: "ERR_NOT_ALLOWED", }; } if (request_change === "groq_api_key") { const updateListing = await sql``; }*/ return { body: body }; });