update question
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
# Instructions
|
||||
|
||||
Start the API server using the following command:
|
||||
|
||||
```
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
```
|
||||
open http://localhost:3000
|
||||
```
|
||||
|
||||
@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user