Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/routes.js
Show All 9 Lines | |||||
import LoginComponent from '../vue/Login' | import LoginComponent from '../vue/Login' | ||||
import LogoutComponent from '../vue/Logout' | import LogoutComponent from '../vue/Logout' | ||||
import PasswordResetComponent from '../vue/PasswordReset' | import PasswordResetComponent from '../vue/PasswordReset' | ||||
import SignupComponent from '../vue/Signup' | import SignupComponent from '../vue/Signup' | ||||
import UserInfoComponent from '../vue/User/Info' | import UserInfoComponent from '../vue/User/Info' | ||||
import UserListComponent from '../vue/User/List' | import UserListComponent from '../vue/User/List' | ||||
import UserProfileComponent from '../vue/User/Profile' | import UserProfileComponent from '../vue/User/Profile' | ||||
import UserProfileDeleteComponent from '../vue/User/ProfileDelete' | import UserProfileDeleteComponent from '../vue/User/ProfileDelete' | ||||
import WalletComponent from '../vue/Wallet' | |||||
import store from './store' | import store from './store' | ||||
const routes = [ | const routes = [ | ||||
{ | { | ||||
path: '/', | path: '/', | ||||
redirect: { name: 'dashboard' } | redirect: { name: 'dashboard' } | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | const routes = [ | ||||
}, | }, | ||||
{ | { | ||||
path: '/users', | path: '/users', | ||||
name: 'users', | name: 'users', | ||||
component: UserListComponent, | component: UserListComponent, | ||||
meta: { requiresAuth: true } | meta: { requiresAuth: true } | ||||
}, | }, | ||||
{ | { | ||||
path: '/wallet', | |||||
name: 'wallet', | |||||
component: WalletComponent, | |||||
meta: { requiresAuth: true } | |||||
}, | |||||
{ | |||||
name: '404', | name: '404', | ||||
path: '*', | path: '*', | ||||
component: Error404Component | component: Error404Component | ||||
} | } | ||||
] | ] | ||||
const router = new VueRouter({ | const router = new VueRouter({ | ||||
mode: 'history', | mode: 'history', | ||||
Show All 19 Lines |