add router for navbar and default routes for the non existing pages
This commit is contained in:
25
routerFrontend/index.js
Normal file
25
routerFrontend/index.js
Normal 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
|
||||
Reference in New Issue
Block a user