/** * GET /api/offers/contract/sections?language=de|en * The selectable contract parts (key + title) for the modal's * "Vertragsbestandteile" checkboxes — mirrors CONTRACT_SECTION_KEYS. */ import { contractSectionOptions } from '../../../utils/offers/contractTexts' export default defineEventHandler(async (event) => { const token = await getTokenHelper(event) if (!token) return { status: 401, message: 'Not authenticated' } const language = String(getQuery(event).language || 'de') return { status: 200, de: contractSectionOptions('de'), en: contractSectionOptions('en'), sections: contractSectionOptions(language) } })