mlpcardgame/src/router.ts
2019-09-02 18:02:40 +02:00

23 lines
422 B
TypeScript

import Vue from "vue";
import Router from "vue-router";
import Home from "@/views/Home.vue";
import DeckBuilder from "@/views/DeckBuilder.vue";
Vue.use(Router);
export default new Router({
mode: "history",
base: process.env.BASE_URL,
routes: [
{
path: "/",
name: "home",
component: Home
},
{
path: "/build",
name: "deck-editor",
component: DeckBuilder
}
]
});