error
This commit is contained in:
@ -8,7 +8,7 @@ app.post('/transfer', async (c) => {
|
|||||||
const { amount, from, to } = body;
|
const { amount, from, to } = body;
|
||||||
|
|
||||||
if (amount <= 0) {
|
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 = {
|
const transfer = {
|
||||||
@ -17,7 +17,7 @@ app.post('/transfer', async (c) => {
|
|||||||
to
|
to
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(transfer);
|
console.log('transfer', transfe);
|
||||||
|
|
||||||
return c.json(transfer)
|
return c.json(transfer)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user