update question

This commit is contained in:
2025-07-10 05:48:23 +08:00
parent f8702ac1b9
commit 9c49adbaf1
7 changed files with 55 additions and 11 deletions

View File

@ -1,8 +1,8 @@
# Instructions
Start the API server using the following command:
```
npm install
npm run dev
```
```
open http://localhost:3000
```

View File

@ -8,6 +8,8 @@ const accounts = {
'2': {amount: 1000},
}
const transactions = []
app.post('/transfer', async (c) => {
const body = await c.req.json();
const { amount, sender, receiver } = body;
@ -23,7 +25,6 @@ app.post('/transfer', async (c) => {
}
console.log('transfer', transfe);
return c.json(transfer)
})