Add timetable route

This commit is contained in:
2022-04-29 22:56:32 +02:00
parent 3f956b6c2c
commit 86c7927a22
2 changed files with 7 additions and 3 deletions

View File

@ -1,13 +1,17 @@
import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import TimetableView from "../views/TimetableView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/",
name: "home",
component: HomeView,
redirect: "/timetable",
},
{
path: "/timetable",
name: "Timetable",
component: TimetableView,
},
],
});