import { markAllRead } from "../../db/notifications";

export default defineEventHandler(async (event) => {
  const user = await requireUser(event);
  await markAllRead(user.id);
  return { ok: true };
});
