import type { Context } from "hono";
import {
  createWallet,
  createWalletSchema,
} from "../wallets.service";

export async function createWalletHandler(c: Context) {
  const body = await c.req.json();
  const parsed = createWalletSchema.parse(body);
  const result = await createWallet(parsed);
  return c.json(result, 201);
}
