Last change
on this file since a0e93df was f9ef3e8, checked in by Ljubomir Ilievski <ilievski.ljubomir@…>, 3 months ago |
Ready to begin with connection with backend
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | import { createRouter, createWebHistory } from 'vue-router'
|
---|
2 |
|
---|
3 |
|
---|
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 | import favourite_locals from '@/components/Project/favourite_locals.vue'
|
---|
8 | import my_reservations from '@/components/Project/My_reservations.vue'
|
---|
9 |
|
---|
10 | const router = createRouter({
|
---|
11 | history: createWebHistory(import.meta.env.BASE_URL),
|
---|
12 | routes: [
|
---|
13 | {
|
---|
14 | path: '/favourite_locals',
|
---|
15 | name: 'favourite_locals',
|
---|
16 | component: favourite_locals,
|
---|
17 | // route level code-splitting
|
---|
18 | // this generates a separate chunk (About.[hash].js) for this route
|
---|
19 | // which is lazy-loaded when the route is visited.
|
---|
20 |
|
---|
21 | },
|
---|
22 | {
|
---|
23 | path: '/my_reservations',
|
---|
24 | name: 'my reservations',
|
---|
25 | component: my_reservations,
|
---|
26 | },
|
---|
27 | {
|
---|
28 | path: '/',
|
---|
29 | name: 'home',
|
---|
30 | component: home_,
|
---|
31 | },
|
---|
32 | {
|
---|
33 | path: '/login',
|
---|
34 | name: 'login',
|
---|
35 | component: login_,
|
---|
36 | },
|
---|
37 | {
|
---|
38 | path: '/register',
|
---|
39 | name: 'register',
|
---|
40 | component: register_,
|
---|
41 | },
|
---|
42 | ],
|
---|
43 | })
|
---|
44 |
|
---|
45 | export default router
|
---|
Note:
See
TracBrowser
for help on using the repository browser.