2018-11-02 22:15:48 +01:00
|
|
|
import { RouteConfig } from 'vue-router'
|
2018-11-02 15:56:29 +01:00
|
|
|
|
2018-11-02 20:10:45 +01:00
|
|
|
const routes: RouteConfig[] = [
|
|
|
|
|
{ path: '/', component: () => import('@/pages/Index.vue'), meta: { name: 'Home' } },
|
2018-11-02 22:15:48 +01:00
|
|
|
/* { path: '/signup', component: () => import('@/views/login/signup.vue'), meta: { name: 'Registration' } },
|
2018-11-02 20:30:53 +01:00
|
|
|
{ path: '/signin', component: () => import('@/views/login/signin.vue'), meta: { name: 'Login' } },
|
|
|
|
|
{ path: '/vreg', component: () => import('@/views/login/vreg.vue'), meta: { name: 'Verify Reg' } },
|
2018-11-02 20:10:45 +01:00
|
|
|
{
|
|
|
|
|
path: '/requestresetpwd',
|
2018-11-02 20:30:53 +01:00
|
|
|
component: () => import('@/views/login/requestresetpwd.vue'),
|
2018-11-02 20:10:45 +01:00
|
|
|
meta: { name: 'Reset your Password' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/updatepwd',
|
2018-11-02 20:30:53 +01:00
|
|
|
component: () => import('@/views/login/updatepassword.vue'),
|
2018-11-02 20:10:45 +01:00
|
|
|
meta: { name: 'Update your Password' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/simpleform',
|
2018-11-02 20:30:53 +01:00
|
|
|
component: () => import('@/views/form/simpleForm/simpleForm.vue'),
|
2018-11-02 20:10:45 +01:00
|
|
|
meta: { name: 'SimpleForm' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/embeeded',
|
2018-11-02 20:30:53 +01:00
|
|
|
component: () => import('@/views/form/embeeded/embeeded.vue'),
|
2018-11-02 20:10:45 +01:00
|
|
|
meta: { name: 'Embeeded' }
|
2018-11-02 22:15:48 +01:00
|
|
|
}*/
|
|
|
|
|
]
|
2018-11-02 15:56:29 +01:00
|
|
|
|
|
|
|
|
// Always leave this as last one
|
|
|
|
|
if (process.env.MODE !== 'ssr') {
|
|
|
|
|
routes.push({
|
2018-11-02 20:10:45 +01:00
|
|
|
name: 'pages.errors.e404',
|
2018-11-02 15:56:29 +01:00
|
|
|
path: '*',
|
2018-11-02 20:10:45 +01:00
|
|
|
component: () => import('@/pages/Error404.vue')
|
2018-11-02 22:15:48 +01:00
|
|
|
})
|
2018-11-02 15:56:29 +01:00
|
|
|
}
|
|
|
|
|
|
2018-11-02 22:15:48 +01:00
|
|
|
export default routes
|