Last change
on this file since 4446c6f was 590f667, checked in by Ljubomir Ilievski <ilievski.ljubomir@…>, 3 months ago |
Added Initial frontend
|
-
Property mode
set to
100644
|
File size:
938 bytes
|
Line | |
---|
1 | import { createRouter, createWebHistory } from 'vue-router'
|
---|
2 |
|
---|
3 | import My_reservations from '@/components/Project/My_reservations.vue'
|
---|
4 | import home_ from '@/components/Project/home_.vue'
|
---|
5 | import login_ from '@/components/Project/login_.vue'
|
---|
6 | import register_ from '@/components/Project/register_.vue'
|
---|
7 |
|
---|
8 | const router = createRouter({
|
---|
9 | history: createWebHistory(import.meta.env.BASE_URL),
|
---|
10 | routes: [
|
---|
11 | {
|
---|
12 | path: '/topics',
|
---|
13 | name: 'my_reservations',
|
---|
14 | component: My_reservations,
|
---|
15 | // route level code-splitting
|
---|
16 | // this generates a separate chunk (About.[hash].js) for this route
|
---|
17 | // which is lazy-loaded when the route is visited.
|
---|
18 |
|
---|
19 | },
|
---|
20 | {
|
---|
21 | path: '/',
|
---|
22 | name: 'home',
|
---|
23 | component: home_,
|
---|
24 | },
|
---|
25 | {
|
---|
26 | path: '/login',
|
---|
27 | name: 'login',
|
---|
28 | component: login_,
|
---|
29 | },
|
---|
30 | {
|
---|
31 | path: '/register',
|
---|
32 | name: 'register',
|
---|
33 | component: register_,
|
---|
34 | },
|
---|
35 | ],
|
---|
36 | })
|
---|
37 |
|
---|
38 | export default router
|
---|
Note:
See
TracBrowser
for help on using the repository browser.