import type { RouteRecordRaw } from "vue-router";
import { NotFound as NotFoundView } from "@actindo/core-ui";
import UnAuthorized from "@/views/UnAuthorized.vue";
import { mainAppRoutes } from "./mainAppRoutes";

export const routes: RouteRecordRaw[] = [
  ...mainAppRoutes,
  {
    path: "/auth/unauthorized",
    name: "UnAuthorized",
    component: UnAuthorized,
    meta: {
      unauthenticated: true,
      transition: "fade",
      transitionMode: "out-in",
    },
  },
  {
    path: "/:catchAll(.*)",
    name: "NotFound",
    component: NotFoundView,
  },
];
