update question
This commit is contained in:
@ -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