49 lines
2.8 KiB
JavaScript
49 lines
2.8 KiB
JavaScript
const routes = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/PublicLayout.vue'),
|
|
children: [
|
|
{path: '', name: "homepage", component: () => import('pages/public/IndexPage.vue')},
|
|
{path: 'login', name: "login", component: () => import('pages/public/LoginPage.vue')},
|
|
{path: 'register', name: "registration", component: () => import('pages/public/RegisterPage.vue')},
|
|
{path: 'about', name: "about", component: () => import('pages/public/AboutPage.vue')},
|
|
]
|
|
},
|
|
{
|
|
path: '/profile',
|
|
component: () => import('layouts/ProfileLayout.vue'),
|
|
meta: {
|
|
protected: true,
|
|
},
|
|
children: [
|
|
{path: '', name: "profile", component: () => import('pages/profile/ProfilePage.vue')},
|
|
{path: 'my-flights', name: "myFlights", component: () => import('pages/profile/lists/FlightsPage.vue')},
|
|
{path: 'my-flights/add', name: "addFlight", component: () => import('pages/profile/forms/NewFlightPage.vue')},
|
|
{path: 'my-flights/:id', name: "flightDetail", component: () => import('pages/profile/details/FlightDetailPage.vue')},
|
|
{path: 'my-flights/:id/edit/:step?', name: "flightEdit", component: () => import('pages/profile/forms/EditFlightPage.vue')},
|
|
{path: 'poi', name: "poi", component: () => import('pages/profile/lists/PointsOfInterestPage.vue')},
|
|
{path: 'poi/add', name: "addPOI", component: () => import('pages/profile/forms/NewPointOfInterestPage.vue')},
|
|
{path: 'poi/:id', name: "poiDetail", component: () => import('pages/profile/details/PointOfInterestDetailPage.vue')},
|
|
{path: 'poi/:id/edit', name: "poiEdit", component: () => import('pages/profile/forms/EditPointOfInterestPage.vue')},
|
|
{path: 'pilots', name: "pilots", component: () => import('pages/profile/lists/CopilotsPage.vue')},
|
|
{path: 'pilots/add', name: "addPilots", component: () => import('pages/profile/forms/NewCopilotPage.vue')},
|
|
{path: 'pilots/:id', name: "pilotDetail", component: () => import('pages/profile/details/CopilotDetailPage.vue')},
|
|
{path: 'pilots/:id/edit', name: "pilotEdit", component: () => import('pages/profile/forms/EditCopilotPage.vue')},
|
|
{path: 'aircrafts', name: "aircrafts", component: () => import('pages/profile/lists/AircraftsPage.vue')},
|
|
{path: 'aircrafts/new', name: "addAircraft", component: () => import('pages/profile/forms/NewAircraftsPage.vue')},
|
|
{path: 'aircrafts/:id', name: "aircraftDetail", component: () => import('pages/profile/details/AircraftDetailPage.vue')},
|
|
{path: 'aircrafts/:id/edit', name: "aircraftEdit", component: () => import('pages/profile/forms/EditAircraftPage.vue')},
|
|
]
|
|
},
|
|
|
|
|
|
// Always leave this as last one,
|
|
// but you can also remove it
|
|
{
|
|
path: '/:catchAll(.*)*',
|
|
component: () => import('pages/ErrorNotFound.vue')
|
|
}
|
|
]
|
|
|
|
export default routes
|