diff --git a/hono/src/index.ts b/hono/src/index.ts index 48d79c0..aeb4bfa 100644 --- a/hono/src/index.ts +++ b/hono/src/index.ts @@ -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) })