/**
 * Router ระบบข้อมูลหลัก (Metadata)
 */

const Main = () => import("@/modules/01_metadata/views/Main.vue");
const ManageDistrict = () =>
  import("@/modules/01_metadata/components/person/District.vue");
const ManageSubDistrict = () =>
  import("@/modules/01_metadata/components/person/SubDistrict.vue");

export default [
  {
    path: "/metadata",
    name: "metadata",
    component: Main,
    meta: {
      Auth: true,
      Key: [7],
      Role: "metadata",
    },
  },
  {
    path: "/metadata/province/:province",
    name: "manageDistrict",
    component: ManageDistrict,
    meta: {
      Auth: true,
      Key: [7],
      Role: "metadata",
    },
  },
  {
    path: "/metadata/province/:province/:district",
    name: "manageSubDistrict",
    component: ManageSubDistrict,
    meta: {
      Auth: true,
      Key: [7],
      Role: "metadata",
    },
  },
];
