diff --git a/src/app/utilities/Http.ts b/src/app/utilities/Http.ts index 3cfba17..48f99f8 100644 --- a/src/app/utilities/Http.ts +++ b/src/app/utilities/Http.ts @@ -19,7 +19,7 @@ async function addHttpRoutes(app: Application) { const tiles = await tileRepository.getAll(); tiles.forEach(tile => { assets.push({ - key: tile.name, + key: tile.id, value: '/assets/tiles/' + tile.id + '.png', group: 'tiles', type: 'link' @@ -29,7 +29,7 @@ async function addHttpRoutes(app: Application) { const objects = await objectRepository.getAll(); objects.forEach(object => { assets.push({ - key: object.name, + key: object.id, value: '/assets/objects/' + object.id + '.png', group: 'objects', type: 'link'