2018-11-05 15:26:18 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
|
|
|
import ROUTES from '@/utils/constants/routerConstants';
|
|
|
|
import Login from '@/views/Login.vue';
|
|
|
|
import Register from '@/views/Register.vue';
|
2018-11-14 14:00:01 +00:00
|
|
|
import Dashboard from '@/views/Dashboard.vue';
|
|
|
|
import AccountArea from '@/components/dashboard/account/AccountArea.vue';
|
2018-11-05 15:26:18 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
mode: 'history',
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: ROUTES.DEFAULT.path,
|
|
|
|
name: ROUTES.DEFAULT.name,
|
|
|
|
component: Login
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ROUTES.REGISTER.path,
|
|
|
|
name: ROUTES.REGISTER.name,
|
|
|
|
component: Register
|
2018-11-14 14:00:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ROUTES.DASHBOARD.path,
|
|
|
|
name: ROUTES.DASHBOARD.name,
|
|
|
|
component: Dashboard,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'account',
|
|
|
|
name: 'Account',
|
|
|
|
component: AccountArea
|
|
|
|
}
|
|
|
|
]
|
2018-11-05 15:26:18 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|