/*** Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee) */
import { defineAsyncComponent } from "vue";

const Main = defineAsyncComponent(
  () => import("@/modules/08_registryEmployee/views/Main.vue")
);

const CreateEmployee = defineAsyncComponent(
  () => import("@/modules/08_registryEmployee/views/Add.vue")
);

const EditDetail = defineAsyncComponent(
  () => import("@/modules/08_registryEmployee/views/EditDetail.vue")
);

export default [
  {
    path: "/registry-employee",
    name: "registry-employee",
    component: Main,
    meta: {
      Auth: true,
      Key: [11],
      Role: "registryEmployee",
    },
  },
  {
    path: "/registry-employee/add",
    name: "registryEmployeeAdd",
    component: CreateEmployee,
    meta: {
      Auth: true,
      Key: [11],
      Role: "registryEmployee",
    },
  },
  {
    path: "/registry-employee/edit/:id",
    name: "registryEmployeeEdit",
    component: EditDetail,
    meta: {
      Auth: true,
      Key: [11],
      Role: "registryEmployee",
    },
  },
];
