error
This commit is contained in:
@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user