add accounts map
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user