import { getActiveStreak } from "../../db/streak";

/** GET /api/streak */
export default defineEventHandler(async (event) => {
  const user = await requireUser(event);
  return getActiveStreak(user.id);
});
