update question

This commit is contained in:
2025-07-10 13:17:45 +08:00
parent 7d8d87074d
commit 742c8f5931
2 changed files with 2 additions and 2 deletions

View File

@ -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"}' -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. 1. Commit & push your changes to the git upstream.

View File

@ -15,7 +15,7 @@ app.post('/transfer', async (c) => {
const { amount, sender, receiver } = body; const { amount, sender, receiver } = body;
if (amount <= 0) { 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 = { const transfer = {