// server/api/config/antrean-masuk-screen.get.ts
import { getConfigDb, parseConfigRow } from '~/server/utils/configDb';

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