mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-22 06:09:09 +01:00
16 lines
446 B
JavaScript
Vendored
16 lines
446 B
JavaScript
Vendored
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
import Accounts from './views/Accounts.vue'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory('/'),
|
|
routes: [
|
|
{ path: '/accounts', name: 'accounts', component: Accounts, meta: { requiresAuth: true }, alias: '/', props: true },
|
|
|
|
// Lazy loaded view
|
|
{ path: '/about', name: 'about', component: () => import('./views/About.vue') }
|
|
]
|
|
})
|
|
|
|
export default router
|