work on relational models. get a characters game history
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user