38 lines
794 B
JavaScript
38 lines
794 B
JavaScript
const routes = [
|
|
{
|
|
path: "/",
|
|
component: () => import("layouts/MainLayout.vue"),
|
|
children: [
|
|
{
|
|
path: "",
|
|
component: () => import("pages/ListasPage.vue"),
|
|
meta: { auth: true },
|
|
},
|
|
{
|
|
path: "perfil",
|
|
component: () => import("pages/IndexPage.vue"),
|
|
meta: { auth: true },
|
|
},
|
|
{
|
|
path: 'lista/:id',
|
|
component: () => import("pages/listas/indexPage.vue"),
|
|
meta: { auth: true },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: "/login",
|
|
component: () => import("pages/LoginPage.vue"),
|
|
},
|
|
{
|
|
path: "/register",
|
|
component: () => import("pages/RegisterPage.vue"),
|
|
},
|
|
{
|
|
path: "/:catchAll(.*)*",
|
|
component: () => import("pages/ErrorNotFound.vue"),
|
|
},
|
|
];
|
|
|
|
export default routes;
|