work on relational models. get a characters game history

This commit is contained in:
jmosrael@gmail.com committed 2024-05-12 18:39:19 -07:00
1 parent ddef1d8e4d
commit e61d0e6474
2 files changed
+34 -5

No files matched your search

+2 -2
View File
@@ -20,10 +20,10 @@ const character = ref({})
async function loadCharacterDetails() {
const characterResponse = await axios.get(`/api/character/${characterId.value}`)
const gameDetails = await axios.post("/api/game", {
})
const gameDetails = await axios.post(`/api/character/${characterId.value}/gameHistory`)
console.log(characterResponse)
console.log(gameDetails)
character.value = characterResponse.data
}