mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-14 16:54:04 +00:00
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
const AuthLayout = () => import('../../layouts/AuthLayout.vue')
|
|
const LoginView = () => import('./views/LoginView.vue')
|
|
const ForgotPasswordView = () => import('./views/ForgotPasswordView.vue')
|
|
const ResetPasswordView = () => import('./views/ResetPasswordView.vue')
|
|
const RegisterWithInvitationView = () => import('./views/RegisterWithInvitationView.vue')
|
|
|
|
export const authRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/login',
|
|
component: AuthLayout,
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'login',
|
|
component: LoginView,
|
|
meta: {
|
|
requiresAuth: false,
|
|
title: 'Login',
|
|
},
|
|
},
|
|
{
|
|
path: '/forgot-password',
|
|
name: 'forgot-password',
|
|
component: ForgotPasswordView,
|
|
meta: {
|
|
requiresAuth: false,
|
|
title: 'Forgot Password',
|
|
},
|
|
},
|
|
{
|
|
path: '/reset-password/:token',
|
|
name: 'reset-password',
|
|
component: ResetPasswordView,
|
|
meta: {
|
|
requiresAuth: false,
|
|
title: 'Reset Password',
|
|
},
|
|
},
|
|
{
|
|
path: '/register',
|
|
name: 'register-with-invitation',
|
|
component: RegisterWithInvitationView,
|
|
meta: {
|
|
requiresAuth: false,
|
|
title: 'Register',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
]
|