This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
FPGA_WebLab/src/router/index.ts

28 lines
1.2 KiB
TypeScript

import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import LoginView from "../views/LoginView.vue";
import LabView from "../views/LabView.vue";
import ProjectView from "../views/ProjectView.vue";
import TestView from "../views/TestView.vue";
import UserView from "../views/UserView.vue";
import AdminView from "../views/AdminView.vue";
import VideoStreamView from "../views/VideoStreamView.vue";
import OscilloscopeView from "@/views/OscilloscopeView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{ path: "/", name: "home", component: HomeView },
{ path: "/login", name: "login", component: LoginView },
{ path: "/lab/:id", name: "lab", component: LabView },
{ path: "/project", name: "project", component: ProjectView },
{ path: "/test", name: "test", component: TestView },
{ path: "/user", name: "user", component: UserView },
{ path: "/admin", name: "admin", component: AdminView },
{ path: "/video-stream", name: "videoStream", component: VideoStreamView },
{ path: "/oscilloscope", name: "oscilloscope", component: OscilloscopeView },
],
});
export default router;