/**
 * POST /api/profile/me/diga-banner-dismiss
 *
 * Server-side persistence des DigaMissionBanner-Dismiss-State
 * (project_profile_page_design.md Q2 — überlebt Re-Install + Geräte-Wechsel).
 */
import { dismissDigaBanner } from "../../../db/profile";
import { requireUser } from "../../../utils/auth";

export default defineEventHandler(async (event) => {
  const user = await requireUser(event);

  await dismissDigaBanner(user.id);

  setResponseStatus(event, 204);
  return null;
});
