import { listMyComplexes } from '@/modules/complex/services/complex.service';
import type { AppContext } from '@/types/hono';

export async function listMyComplexesHandler(c: AppContext) {
  const user = c.get('user');
  const complexes = await listMyComplexes(user.id);
  return c.json(complexes);
}
