REST Service for POPCORN - ILIAS
alex
2025-06-04 7aa80f1c68df586c1bc637c668666d29e84c3de7
vue/src/router.js
@@ -8,13 +8,15 @@
import Kurse from './pages/Kurse.vue'
import KursDetail from './pages/KursDetail.vue'
const routes = [
   { path: '/', redirect: "/user" },
   { path: '/ui/user', component: Users },
   { path: '/ui/user/:userId', component: UserDetail },
   { path: '/ui/kurs', component: Kurse },
   { path: '/ui/kurs/:kursId', component: KursDetail },
   { path: `/`, redirect: "/ui/user" },
   { path: `/ui/user`, component: Users },
   { path: `/ui/user/:userId`, component: UserDetail },
   { path: `/ui/kurs`, component: Kurse },
   { path: `/ui/kurs/:kursId`, component: KursDetail },
]
console.log(routes)
const router = createRouter({
   history: createWebHistory(),