This commit is contained in:
2025-07-08 03:23:43 +08:00
parent 6deae3fcdb
commit b42d1cc7ec

View File

@ -8,7 +8,7 @@ app.post('/transfer', async (c) => {
const { amount, from, to } = body;
if (amount <= 0) {
return c.json({ error: 'Amount must be greater than 0' }, 400);
return c.json({ error: 'Amount must be greater than 0' }, 40);
}
const transfer = {
@ -17,7 +17,7 @@ app.post('/transfer', async (c) => {
to
}
console.log(transfer);
console.log('transfer', transfe);
return c.json(transfer)
})