function route(type: string, data: unknown) {
if (type.startsWith('fiat.')) return money.handle(type, data);
if (type.startsWith('bills_payment.')) return bills.handle(type, data);
if (type.startsWith('card.transaction.')) return cardSpend.handle(type, data);
if (type.startsWith('card.')) return cards.handle(type, data);
if (type.startsWith('account.')) return accounts.handle(type, data);
if (type.startsWith('customer.')) return customers.handle(type, data);
if (type === 'endpoint.test') return ok();
return ok(); // unknown types are normal, not errors
}