- Clean all JSON data files: convert MongoDB format to clean JSON - works.json, images.json, publications.json, pubs.json, talks.json - releases.json, album_art.json, scores.json, my_image_gallery.json - events.json (with legacy program → program transformation) - resume.json (simplified structure) - Simplify all API routes (remove cleanData functions) - Fix PDF links to open in new tab (scores, writings, albums) - Upgrade to Nuxt 4.3.1 and fix carousel (nuxt-swiper) - Replace nuxt-icon with @nuxt/icon - Fix IconButton component for new tab links - Update cv.vue for resume data structure changes - Add icon collections (@iconify-json packages)
9 lines
202 B
TypeScript
9 lines
202 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
|
|
const dataFile = './server/data/images.json'
|
|
|
|
export default defineEventHandler(() => {
|
|
const raw = readFileSync(dataFile, 'utf-8')
|
|
return JSON.parse(raw)
|
|
})
|