forward unknown url to dashboard

This commit is contained in:
j3d1 2024-04-09 21:30:30 +02:00
parent 157e47d3ef
commit 9770ca861a

View file

@ -11,6 +11,7 @@ const routes = [
{path: '/friends', component: Friends, meta: {requiresAuth: true}}, {path: '/friends', component: Friends, meta: {requiresAuth: true}},
{path: '/login', component: Login, meta: {requiresAuth: false}}, {path: '/login', component: Login, meta: {requiresAuth: false}},
{path: '/register', component: Register, meta: {requiresAuth: false}}, {path: '/register', component: Register, meta: {requiresAuth: false}},
{path: '/:pathMatch(.*)*', redirect: '/'}
] ]
const router = createRouter({ const router = createRouter({