diff options
Diffstat (limited to 'kamon-status/src/router.ts')
-rw-r--r-- | kamon-status/src/router.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kamon-status/src/router.ts b/kamon-status/src/router.ts new file mode 100644 index 00000000..e540d9a4 --- /dev/null +++ b/kamon-status/src/router.ts @@ -0,0 +1,23 @@ +import Vue from 'vue'; +import Router from 'vue-router'; +import Home from './views/Home.vue'; + +Vue.use(Router); + +export default new Router({ + routes: [ + { + path: '/', + name: 'home', + component: Home, + }, + { + path: '/about', + name: 'about', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => import(/* webpackChunkName: "about" */ './views/About.vue'), + }, + ], +}); |