Last change
on this file since 7d8eeab was dad25fc, checked in by Aleksandarj03 <138524804+Aleksandarj03@…>, 41 hours 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
|
Rev | Line | |
---|
[590f667] | 1 | import { createRouter, createWebHistory } from 'vue-router'
|
---|
| 2 |
|
---|
[f9ef3e8] | 3 |
|
---|
[590f667] | 4 | import home_ from '@/components/Project/home_.vue'
|
---|
| 5 | import login_ from '@/components/Project/login_.vue'
|
---|
| 6 | import register_ from '@/components/Project/register_.vue'
|
---|
[f9ef3e8] | 7 | import favourite_locals from '@/components/Project/favourite_locals.vue'
|
---|
| 8 | import my_reservations from '@/components/Project/My_reservations.vue'
|
---|
[17db9d2] | 9 | import Locale_ from '@/components/Project/Locale_.vue'
|
---|
[dad25fc] | 10 | import AddRestaurant from "@/components/Project/AddRestaurant.vue";
|
---|
[590f667] | 11 |
|
---|
| 12 | const router = createRouter({
|
---|
| 13 | history: createWebHistory(import.meta.env.BASE_URL),
|
---|
| 14 | routes: [
|
---|
| 15 | {
|
---|
[f9ef3e8] | 16 | path: '/favourite_locals',
|
---|
| 17 | name: 'favourite_locals',
|
---|
| 18 | component: favourite_locals,
|
---|
[590f667] | 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 | },
|
---|
[f9ef3e8] | 24 | {
|
---|
| 25 | path: '/my_reservations',
|
---|
| 26 | name: 'my reservations',
|
---|
| 27 | component: my_reservations,
|
---|
| 28 | },
|
---|
[590f667] | 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 | },
|
---|
[17db9d2] | 44 | {
|
---|
| 45 | path: '/more_details',
|
---|
| 46 | name: 'more_details',
|
---|
| 47 | component: Locale_,
|
---|
[dad25fc] | 48 | },
|
---|
| 49 | {
|
---|
| 50 | path: '/addRestaurant',
|
---|
| 51 | name: 'addRestaurant',
|
---|
| 52 | component: AddRestaurant,
|
---|
[17db9d2] | 53 | }
|
---|
[590f667] | 54 | ],
|
---|
| 55 | })
|
---|
| 56 |
|
---|
| 57 | export default router
|
---|
Note:
See
TracBrowser
for help on using the repository browser.