Mengirim permintaan AJAX menggunakan KY

/*index.ejs*/
window.onload = async function(){
	const json = await ky.post('/test', {json:{x:"XXXXXXXXXXX"}}).json();

	console.log(json.x);
 
}

/*routes/index.js*/

router.post("/test", async function(req, res, next)
{
	res.json({x:req.body.x});
	
	
})
Javasper