import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

export const createRouter = () =>
  new VueRouter({
    routes: [
      /* {
        path: "/uav",
        component: () => import(`../../../src/observe/fckernel/uav`),
      },
      {
        path: "/nest",
        component: () => import(`${path}/observe/fckernel/nest`),
      },*/
      {
        path: "/uavList",
        component: () => import(`@/views/uavList`),
      },
      {
        path: "/dataTransferPanel",
        component: () => import(`@/views/dataTransferPanel`),
      },
      {
        path: "/mqtt",
        component: () => import(`@/views/mqtt`),
      },
      {
        path: "/groundStation",
        component: () => import(`@/views/groundStation`),
      },
      {
        path: "/player",
        component: () => import(`@/views/player`),
      },
    ],
  });

const router = createRouter();

export default router;
