LabWork06 VUE WORK

This commit is contained in:
Артём Алейкин 2023-06-13 16:26:27 +04:00
parent 0c5ae531f6
commit a68a8ca1b1

View File

@ -8,9 +8,9 @@ import Error from "./pages/Error.vue";
import {createRouter, createWebHistory} from "vue-router"
const routes = [
{path: '/manufacturer', component: manufacturers},
{path: '/category', component: categories},
{path: '/product', component: products},
{path: '/manufacturer', component: manufacturers, meta: { requiresAuth: true }},
{path: '/category', component: categories, meta: { requiresAuth: true }},
{path: '/product', component: products, meta:{ requiresAuth: true }},
{path: "/users", component: users, meta: { requiresAuth: true, requiresAdmin: true }},
{path: "/login", component: login},
{path: "/registration", component: registration},