mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-04 02:39:14 +02:00
56 lines
1.3 KiB
TypeScript
56 lines
1.3 KiB
TypeScript
import { createRouter, createWebHistory } from "vue-router";
|
|
import Faq from "../components/FaqPage.vue";
|
|
import CourseSelection from "../components/CourseSelection.vue";
|
|
import AdditionalModules from "../components/AdditionalModules.vue";
|
|
import CalendarLink from "../components/CalendarLink.vue";
|
|
import Impress from "../components/Imprint.vue";
|
|
import PrivacyPolicy from "../components/PrivacyPolicy.vue";
|
|
import RenameModules from "../components/RenameModules.vue";
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: "/",
|
|
name: "course-selection",
|
|
component: CourseSelection,
|
|
},
|
|
{
|
|
path: "/faq",
|
|
name: "faq",
|
|
component: Faq,
|
|
},
|
|
{
|
|
path: "/additional-modules",
|
|
name: "additional-modules",
|
|
component: AdditionalModules,
|
|
},
|
|
{
|
|
path: "/calendar-link",
|
|
name: "calendar-link",
|
|
component: CalendarLink,
|
|
},
|
|
{
|
|
path: "/privacy-policy",
|
|
name: "privacy-policy",
|
|
component: PrivacyPolicy,
|
|
},
|
|
{
|
|
path: "/impress",
|
|
name: "impress",
|
|
component: Impress,
|
|
},
|
|
{
|
|
path: "/rename-modules",
|
|
name: "rename-modules",
|
|
component: RenameModules,
|
|
},
|
|
{
|
|
path: "/:catchAll(.*)",
|
|
redirect: "/",
|
|
},
|
|
],
|
|
});
|
|
|
|
export default router;
|