add accounts map

This commit is contained in:
2025-07-08 03:30:09 +08:00
parent b42d1cc7ec
commit f6394ea3c0

View File

@ -3,6 +3,11 @@ import { Hono } from 'hono'
const app = new Hono()
const accounts = {
'1': {amount: 1000},
'2': {amount: 1000},
}
app.post('/transfer', async (c) => {
const body = await c.req.json();
const { amount, from, to } = body;