提交正式官网

This commit is contained in:
parkiss
2026-07-09 14:35:32 +08:00
parent 5efbd6760e
commit e09f0eccda
792 changed files with 91499 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { listPublishedMedia } from '~/server/utils/news'
import { ok } from '~/server/utils/response'
export default defineEventHandler(async (event) => {
const query = getQuery(event)
const localeRaw = String(query.locale || 'en').trim()
const locale = localeRaw === 'zh' ? 'zh' : 'en'
const media = await listPublishedMedia(locale)
return ok(media)
})