import type { Context } from "hono"; import { depositWallet, depositSchema, } from "../wallets.service"; export async function depositWalletHandler(c: Context) { const id = Number(c.req.param("id")); const body = await c.req.json(); const parsed = depositSchema.parse(body); const result = await depositWallet(id, parsed); return c.json(result); }