add python project and remove express projec
This commit is contained in:
@ -10,7 +10,7 @@ const accounts = {
|
||||
|
||||
app.post('/transfer', async (c) => {
|
||||
const body = await c.req.json();
|
||||
const { amount, from, to } = body;
|
||||
const { amount, sender, receiver } = body;
|
||||
|
||||
if (amount <= 0) {
|
||||
return c.json({ error: 'Amount must be greater than 0' }, 40);
|
||||
@ -18,8 +18,8 @@ app.post('/transfer', async (c) => {
|
||||
|
||||
const transfer = {
|
||||
amount,
|
||||
from,
|
||||
to
|
||||
sender,
|
||||
receiver
|
||||
}
|
||||
|
||||
console.log('transfer', transfe);
|
||||
|
||||
Reference in New Issue
Block a user