import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Login",
    component: () => import("../features/Login/Login.vue"),
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("../features/Home/Home.vue"),
  },
  {
    path: "/exam-list",
    name: "ExamList",
    component: () => import("../features/ExamList/ExamList.vue"),
  },
  {
    path: "/image",
    name: "Image",
    component: () => import("../features/Image/Image.vue"),
  },
  {
    path: "/image-download",
    name: "ImageDownload",
    component: () => import("../features/ImageDownload/ImageDownload.vue"),
  },
  {
    path: "/sync",
    name: "Sync",
    component: () => import("../features/Sync/Sync.vue"),
  },
  {
    path: "/sync-run",
    name: "SyncRun",
    component: () => import("../features/SyncRun/SyncRun.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
