// TODO this is not really a POST; replace with something better, like // returning CardData with the session interface Body { cardUids: string[]; } export default defineEventHandler(async (event) => { const config = useRuntimeConfig(event); const db = await getDb(config.dbPath); const body = await readBody(event); return await db.getCards(body.cardUids); });