Last change
on this file since dad25fc was dad25fc, checked in by Aleksandarj03 <138524804+Aleksandarj03@…>, 2 days ago |
Rewrote logic for login and register and added Add Restaurant functionality for the admin
|
-
Property mode
set to
100644
|
File size:
1.4 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 | import Locale_ from '@/components/Project/Locale_.vue'
|
---|
10 | import AddRestaurant from "@/components/Project/AddRestaurant.vue";
|
---|
11 |
|
---|
12 | const router = createRouter({
|
---|
13 | history: createWebHistory(import.meta.env.BASE_URL),
|
---|
14 | routes: [
|
---|
15 | {
|
---|
16 | path: '/favourite_locals',
|
---|
17 | name: 'favourite_locals',
|
---|
18 | component: favourite_locals,
|
---|
19 | // route level code-splitting
|
---|
20 | // this generates a separate chunk (About.[hash].js) for this route
|
---|
21 | // which is lazy-loaded when the route is visited.
|
---|
22 |
|
---|
23 | },
|
---|
24 | {
|
---|
25 | path: '/my_reservations',
|
---|
26 | name: 'my reservations',
|
---|
27 | component: my_reservations,
|
---|
28 | },
|
---|
29 | {
|
---|
30 | path: '/',
|
---|
31 | name: 'home',
|
---|
32 | component: home_,
|
---|
33 | },
|
---|
34 | {
|
---|
35 | path: '/login',
|
---|
36 | name: 'login',
|
---|
37 | component: login_,
|
---|
38 | },
|
---|
39 | {
|
---|
40 | path: '/register',
|
---|
41 | name: 'register',
|
---|
42 | component: register_,
|
---|
43 | },
|
---|
44 | {
|
---|
45 | path: '/more_details',
|
---|
46 | name: 'more_details',
|
---|
47 | component: Locale_,
|
---|
48 | },
|
---|
49 | {
|
---|
50 | path: '/addRestaurant',
|
---|
51 | name: 'addRestaurant',
|
---|
52 | component: AddRestaurant,
|
---|
53 | }
|
---|
54 | ],
|
---|
55 | })
|
---|
56 |
|
---|
57 | export default router
|
---|
Note:
See
TracBrowser
for help on using the repository browser.