Return Response

This commit is contained in:
2022-12-25 16:05:16 +01:00
parent ab965574e7
commit 5af12a39d7

View File

@@ -37,9 +37,11 @@ export const POST = (async ({ request, fetch }) => {
return json({ message: res.error.code }) return json({ message: res.error.code })
} }
return json({ return new Response(JSON.stringify({
success: true, success: true,
message: res.status, message: res.status,
}), {
status: 200
}) })
} }
} catch (err) { } catch (err) {