const routes = [
  {
    path: "/",
    component: () => import("layouts/MainLayout.vue"),
    children: [
      {
        path: "",
        component: () => import("pages/IndexPage.vue"),
        meta: { pageName: "Знания", requiresAuth: false },
      },
      {
        path: "/actions",
        component: () => import("pages/ActionsPage.vue"),
        meta: { pageName: "Действия", requiresAuth: false },
      },
      {
        path: "/universes",
        component: () => import("pages/UniversesPage.vue"),
        meta: { pageName: "Вселенные", requiresAuth: false },
      },
      {
        path: "/profile",
        component: () => import("pages/UserProfile.vue"),
        meta: { pageName: "Профиль", requiresAuth: true },
      },
      {
        path: "/privacy_policy",
        component: () => import("pages/privacyPolicy.vue"),
        meta: { pageName: "Политика конфиденциальности", requiresAuth: false },
      },
      {
        path: "/restarigo",
        component: () => import("pages/restarigo"),
        meta: { pageName: "Восстановление доступа", requiresAuth: false },
      },
      {
        path: "/registrado",
        component: () => import("pages/registrado"),
        meta: { pageName: "Регистрация", requiresAuth: false },
      },
    ],
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: "/:catchAll(.*)*",
    component: () => import("pages/ErrorNotFound.vue"),
  },
];

export default routes;
