Files
InvoiceShelf/resources/scripts-v2/features/auth/routes.ts
2026-04-06 17:59:15 +02:00

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',
},
},
],
},
]