import { getActiveBlocklistCount } from "../../db/domains";

const ADGUARD_KNOWN_COUNT = 208704;

export default defineEventHandler(async () => {
  const count = await getActiveBlocklistCount();
  return { count: count > 1000 ? count : ADGUARD_KNOWN_COUNT };
});
