add router for navbar and default routes for the non existing pages

This commit is contained in:
2023-11-14 11:10:14 +01:00
parent fee9acfd6d
commit 1761a03afb
2 changed files with 90 additions and 45 deletions

25
routerFrontend/index.js Normal file
View File

@ -0,0 +1,25 @@
import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../pages/home.vue';
import ClientsPage from '../pages/clients.vue';
import LoginPage from '../pages/login.vue';
const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
component: LoginPage
},
{
path: '/home',
component: HomePage
},
{
path: '/clients',
component: ClientsPage
},
]
})
export default router