fixed routing issue on logout

This commit is contained in:
2025-10-09 00:56:46 +02:00
parent 4f1452e0d9
commit 2c6d0859f6
5 changed files with 30 additions and 22 deletions

20
front/src/router.js Normal file
View File

@@ -0,0 +1,20 @@
import { createRouter, createWebHistory } from 'vue-router'
import BooksBrowser from './BooksBrowser.vue'
import AddBook from './AddBook.vue'
import SignUp from './SignUp.vue'
import LogIn from './LogIn.vue'
import Home from './Home.vue'
const routes = [
{ path: '/', component: Home },
{ path: '/books', component: BooksBrowser },
{ path: '/add', component: AddBook },
{ path: '/signup', component: SignUp },
{ path: '/login', component: LogIn },
]
export const router = createRouter({
history: createWebHistory(),
routes,
})