LabWork06 VUE WORK
This commit is contained in:
parent
0c5ae531f6
commit
a68a8ca1b1
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user