import { listAdminUsers } from '@/modules/admin/services/admin-users.service';
import type { AppContext } from '@/types/hono';

export async function listUsersHandler(c: AppContext) {
  const search = c.req.query('search');
  const users = await listAdminUsers(search);
  return c.json(users);
}
