2020-01-16 13:50:53 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
|
|
|
|
|
|
|
Vue.use(Router)
|
|
|
|
|
2020-01-18 18:19:37 +01:00
|
|
|
import Accounts from './views/Accounts'
|
|
|
|
import Create from './views/twofaccounts/Create'
|
|
|
|
import Edit from './views/twofaccounts/Edit'
|
|
|
|
import Login from './views/auth/Login'
|
|
|
|
import Register from './views/auth/Register'
|
2020-01-23 23:02:54 +01:00
|
|
|
import PasswordUpdate from './views/auth/password/Update'
|
2020-01-18 18:19:37 +01:00
|
|
|
import PasswordRequest from './views/auth/password/Request'
|
|
|
|
import PasswordReset from './views/auth/password/Reset'
|
2020-02-12 17:04:50 +01:00
|
|
|
import Profile from './views/profile/Index'
|
2020-01-27 21:41:47 +01:00
|
|
|
import Errors from './views/Error'
|
2020-01-16 13:50:53 +01:00
|
|
|
|
|
|
|
const router = new Router({
|
|
|
|
mode: 'history',
|
|
|
|
routes: [
|
|
|
|
{ path: '/', name: 'accounts', component: Accounts, props: true },
|
|
|
|
{ path: '/login', name: 'login',component: Login },
|
|
|
|
{ path: '/register', name: 'register',component: Register },
|
2020-01-23 23:02:54 +01:00
|
|
|
{ path: '/profile', name: 'profile',component: Profile },
|
2020-01-16 13:50:53 +01:00
|
|
|
{ path: '/create', name: 'create',component: Create },
|
|
|
|
{ path: '/edit/:twofaccountId', name: 'edit',component: Edit },
|
|
|
|
|
2020-02-12 17:04:50 +01:00
|
|
|
// { path: '/password/update', name: 'password.update',component: PasswordUpdate },
|
2020-01-16 13:50:53 +01:00
|
|
|
{ path: '/password/request', name: 'password.request', component: PasswordRequest },
|
|
|
|
{ path: '/password/reset/:token', name: 'password.reset', component: PasswordReset },
|
|
|
|
|
2020-01-27 21:41:47 +01:00
|
|
|
{ path: '/flooded', name: 'flooded',component: Errors,props: true },
|
|
|
|
{ path: '/error', name: 'genericError',component: Errors,props: true },
|
|
|
|
{ path: '/404', name: '404',component: Errors,props: true },
|
2020-01-16 13:50:53 +01:00
|
|
|
{ path: '*', redirect: { name: '404' } }
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router
|