mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
15 lines
413 B
JavaScript
15 lines
413 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: process.env.NODE_ENV === 'production' ? '/new-app' : __dirname, // eslint-disable-line no-process-env
|
|
routes: [
|
|
{ path: '/', component: Home },
|
|
{ path: '/page', component: Page },
|
|
],
|
|
}); |