Add individual character folders to app

This commit is contained in:
Xevion
2022-05-19 00:00:07 -05:00
parent 0ffcc7291d
commit 98233b7628
92 changed files with 101 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ export default new Vuex.Store({
},
[types.FETCH_CHARACTER]({commit}, character_id) {
return new Promise((resolve, reject) => {
const path = `${process.env.VUE_APP_API_URL}/api/character/${character_id}/`;
const path = `/json/character/${character_id}/`;
axios.get(path)
.then((res) => {
commit(types.MERGE_CHARACTER, {id: character_id, characterData: res.data})