work on loading in character list data
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user