import { contactInfoService } from '~~/server/services/cms/contactInfoService'; export default defineEventHandler(async (event) => { const locale = getHeader(event, 'x-locale') || 'zh-CN'; const contactInfo = await contactInfoService.getContactInfo(locale); contactInfo.content = rewriteAssetUrls( contactInfo.content, useRuntimeConfig().public.directus.url, '/api/assets' ); return contactInfo; });