Files
habitica/website/client/router.js
Matteo Pagliazzi 2f626c7875 Vuex (#8041)
* add vuex, cleanup client directory and create example components

* disale sample unit test

* disable import for non existing file

* correct regexp for unit tests, add simple test to avoid error, add babel-polyfill for Vuex

* add line wrongly removed, update regexp
2016-09-20 18:58:02 +02:00

15 lines
322 B
JavaScript

import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from './components/home';
import Page from './components/page';
Vue.use(VueRouter);
export default new VueRouter({
mode: 'history',
base: __dirname,
routes: [
{ path: '/', component: Home },
{ path: '/page', component: Page },
],
});