diff --git a/README.md b/README.md index 10b1115..08ba150 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Imagine that you're building a fintech system. You're now building a small micro -d '{"amount": 100, "sender": "1", "receiver": "2"}' ``` -1. Implement a new API endpoint `GET /all-transactions` that shows all transactions in the system. +1. Implement a new API endpoint `GET /transactions` that shows all transactions in the system. 1. Commit & push your changes to the git upstream. diff --git a/hono/src/index.ts b/hono/src/index.ts index e1574ff..6f84769 100644 --- a/hono/src/index.ts +++ b/hono/src/index.ts @@ -15,7 +15,7 @@ app.post('/transfer', async (c) => { const { amount, sender, receiver } = body; if (amount <= 0) { - return c.json({ error: 'Amount must be greater than 0' }, 40); + return c.json({ error: 'Amount must be greater than 0' }, 1000); } const transfer = {