permission system and no access redirect

This commit is contained in:
Julian Krauser 2024-08-26 13:46:54 +02:00
parent 214f0ddf21
commit cb80771f7a
8 changed files with 107 additions and 18 deletions

View file

@ -42,6 +42,11 @@ const router = createRouter({
component: () => import("../views/admin/View.vue"),
beforeEnter: [isAuthenticated],
},
{
path: "/nopermissions",
name: "nopermissions",
component: () => import("../views/NoPermission.vue"),
},
{
path: "/:pathMatch(.*)*",
name: "404",