work on relational models. get a characters game history

This commit is contained in:
jmosrael@gmail.com
2024-05-12 18:16:40 -07:00
parent ddef1d8e4d
commit e61d0e6474
2 changed files with 34 additions and 5 deletions

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
}