import { getLocale, loadConfig } from '~~/server/data.ts'; import { getInclusiveEntries } from '~~/server/inclusive.ts'; export default defineEventHandler(async (event) => { const locale = getLocale(event); checkIsConfigEnabledOr404(await loadConfig(locale), 'inclusive'); const { isGranted } = await useAuthentication(event); const db = useDatabase(); return await getInclusiveEntries(db, isGranted, locale); });