import { createWebHistory, createRouter } from "vue-router";
import HomePage from "@/views/HomePage.vue";
import CheckSurvey from "@/views/CheckSurvey.vue";
import QuestionList from "@/views/QuestionList.vue";
import RegisterForm from "@/views/RegisterForm.vue";
import SearchUser from "@/views/SearchUser.vue";
import UploadImage from "@/views/UploadImage.vue";
import LoginForm from "@/views/LoginForm.vue";
import ProfileUser from "@/views/ProfileUser.vue";
import CheckDetail from "@/views/CheckDetail.vue";
const routes = [
  {
    path: "/",
    name: "HomePage",
    component: HomePage,
  },
  {
    path: "/login",
    name: "LoginForm",
    component: LoginForm,
  },
  {
    path: "/check",
    component: CheckSurvey,
  },
  {
    path: "/checklist",
    component: QuestionList,
  },
  {
    path: "/forms",
    component: RegisterForm,
  },
  {
    path: "/search",
    component: SearchUser,
  },
  {
    path: "/upload",
    component: UploadImage,
  },
  {
    path: "/profile",
    component: ProfileUser,
  },
  {
    path: "/detail",
    component: CheckDetail,
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;

