mlpcardgame/src/router.ts

24 lines
422 B
TypeScript
Raw Normal View History

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