Created
May 18, 2024 16:38
-
-
Save christopherbauer/0906a3fe97c68dd54ca829739a907196 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** ... ***/ | |
app.route("/persona").get(async (req, res) => { | |
const personas = getPersonas(); | |
const personaMap = personas.map((p) => ({ | |
id: p.id, | |
name: p.name, | |
imageUri: p.imageUri, | |
})); | |
res.status(200).send(personaMap); | |
}); | |
/** ... ***/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment