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 @@