From 7e9e0d16b0982954b8a8e77bc59f340b3b0b0533 Mon Sep 17 00:00:00 2001 From: "jmosrael@gmail.com" Date: Sat, 4 May 2024 06:10:55 +0000 Subject: [PATCH] work on loading in character list data --- frontend/src/router/index.ts | 8 +++++++- frontend/src/vues/GameList.vue | 3 --- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 6233f42..fd4b72b 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -2,6 +2,7 @@ import { createRouter, createWebHashHistory } from 'vue-router' import GameList from '../vues/GameList.vue' import GameDetails from '../vues/GameDetails.vue' +import CharacterList from '../vues/CharacterList.vue' const root = { path: '/', @@ -18,7 +19,12 @@ const gameDetailsRoute = { component: GameDetails } -const routes = [root, gameListRoute, gameDetailsRoute] +const characterListRoute = { + path: '/characters', + component: CharacterList +} + +const routes = [root, gameListRoute, gameDetailsRoute, characterListRoute] export default createRouter({ history: createWebHashHistory(), diff --git a/frontend/src/vues/GameList.vue b/frontend/src/vues/GameList.vue index e5bfbb5..a7aa379 100644 --- a/frontend/src/vues/GameList.vue +++ b/frontend/src/vues/GameList.vue @@ -26,7 +26,6 @@