git clone https://github.com/jmou/yakatak.git
git clone git@github.com:jmou/yakatak.git
// 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<Body>(event);
return await db.getCards(body.cardUids);
});