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

/** GET /api/streak/events – Streak-Verlauf abrufen */
export default defineEventHandler(async (event) => {
  const user = await requireUser(event);
  return getStreakEvents(user.id);
});
