import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import MainMenu from "@/components/TSD/MainMenu.vue";
import PageNotFound from "@/components/PageNotFound.vue";
import sseTest from "@/components/TSD/sseTest.vue";
import test from "@/components/TSD/test.vue";
const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/tsd/:id',
    name: 'MainMenu',
    component: MainMenu,
    props: true,
  },
  {
    path: '/sse',
    name: 'SSE',
    component: sseTest,
    props: true,
  },
  {
    path: '/test',
    name: 'test',
    component: test,
    props: true,
  },


  { path: '/:catchAll(.*)', component: PageNotFound },

]

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

export default router
