// server/api/config/anjungan.get.ts
import { getConfigDb, parseConfigRow } from '~/server/utils/configDb';

export default defineEventHandler(() => {
  const db = getConfigDb();
  const rows = db.prepare('SELECT * FROM config_anjungan ORDER BY id ASC').all();
  return { success: true, data: rows.map(parseConfigRow) };
});
