add python project and remove express projec

This commit is contained in:
2025-07-08 03:41:20 +08:00
parent f6394ea3c0
commit e5dd781966
10 changed files with 39 additions and 1271 deletions

View File

@ -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);