checkpoint
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 7s

This commit is contained in:
2026-03-27 20:22:17 -05:00
parent 12d1e65ed5
commit 5afd9057f2
6 changed files with 102 additions and 1 deletions

View File

@@ -17,7 +17,8 @@ const routes = [
{ path: "/register", component: RegisterForm },
{ path: "/items", component: ItemsList, meta: { requiresAuth: true } },
{ path: "/item/new", component: ItemForm, meta: { requiresAuth: true } },
{ path: "/item/:id", component: ItemForm, meta: { requiresAuth: true } }
{ path: "/item/:id", component: ItemForm, meta: { requiresAuth: true } },
{ path: "/users", component: ItemsList, meta: { requiresAuth: true } }
]; // I really like this
const router = createRouter({
@@ -36,5 +37,6 @@ router.beforeEach((to, from, next) => {
}
});
// if the api responds unauthorized (401) then it also will auto-redirect to the login page
export default router;