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"
|
import {createRouter, createWebHistory} from "vue-router"
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{path: '/manufacturer', component: manufacturers},
|
{path: '/manufacturer', component: manufacturers, meta: { requiresAuth: true }},
|
||||||
{path: '/category', component: categories},
|
{path: '/category', component: categories, meta: { requiresAuth: true }},
|
||||||
{path: '/product', component: products},
|
{path: '/product', component: products, meta:{ requiresAuth: true }},
|
||||||
{path: "/users", component: users, meta: { requiresAuth: true, requiresAdmin: true }},
|
{path: "/users", component: users, meta: { requiresAuth: true, requiresAdmin: true }},
|
||||||
{path: "/login", component: login},
|
{path: "/login", component: login},
|
||||||
{path: "/registration", component: registration},
|
{path: "/registration", component: registration},
|
||||||
|
Loading…
Reference in New Issue
Block a user