diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-19 23:51:58 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-19 23:51:58 +0200 |
commit | 2c7890e90e1aad371854cfe60ad63eaa88e64fec (patch) | |
tree | e144631d4c8ad3b5f862e5822d697f19fc061f73 /resources | |
parent | 1a3489d4026656f83504a0154c294a5b6cf76a61 (diff) |
move generated db json files
Diffstat (limited to 'resources')
-rw-r--r-- | resources/js/db.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/js/db.js b/resources/js/db.js index 648c54c..e084818 100644 --- a/resources/js/db.js +++ b/resources/js/db.js @@ -72,9 +72,9 @@ const DB = { }; async function initializeDB () { - DB.allMonsters = await fetch('/db/all-monsters.json').then((response) => response.json()); - DB.allAnimations = await fetch('/db/animations.json').then((response) => response.json()); - DB.allItems = await fetch('/db/all-items.json').then((response) => response.json()); + DB.allMonsters = await fetch('/db/_generated/all-monsters.json').then((response) => response.json()); + DB.allAnimations = await fetch('/db/_generated/animations.json').then((response) => response.json()); + DB.allItems = await fetch('/db/_generated/all-items.json').then((response) => response.json()); DB.shapes = await fetch('/modules/tuxemon/mods/tuxemon/db/shape/shapes.json').then((response) => response.json()); @@ -147,7 +147,7 @@ async function fetchItem (slug) { */ async function fetchTranslation (locale) { if (! DB.translations[locale]) { - DB.translations[locale] = await fetch(`/db/i18n/${locale}.json`).then((response) => response.json()); + DB.translations[locale] = await fetch(`/db/_generated/i18n/${locale}.json`).then((response) => response.json()); } return DB.translations[locale]; |