router.ts
uptime
14d 02h
latency
12ms · 38ms p99
12// handle incoming charge
13export async function charge(req: Request) {
14 const body = await req.json();
15 const result = await process({
16 amount: body.amount,
17 currency: body.currency ?? "usd",
18 });
19 return Response.json(result);
20}
13export async function charge(req: Request) {
14 const body = await req.json();
15 const result = await process({
16 amount: body.amount,
17 currency: body.currency ?? "usd",
18 });
19 return Response.json(result);
20}
●
hearth · connected
main @ a7f3c2