minimally made

This commit is contained in:
2026-01-13 19:51:21 +00:00
parent 337be0715f
commit 31a2e2e458

View File

@@ -1,3 +1,18 @@
export default defineEventHandler((event) => { export default defineEventHandler(async (event) => {
const body = await readBody(event)
})
const req = await fetch("http://127.0.0.1:99",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
email: body.email!,
pwd: body.password!,
})
}
)
if (!req.ok) throw createError({ statusCode: req.status })
})