Files
eamco_office_frontend/src/pages/service/routes.ts

47 lines
1.1 KiB
TypeScript

// Import the new component at the top
import ServiceHome from './ServiceHome.vue'
import ServicePast from './ServicePast.vue'
import CalendarCustomer from './calender/CalendarCustomer.vue'
import ServiceCalendar from './ServiceCalendar.vue'
import ServiceToday from './ServiceToday.vue'
import ServicePlans from './ServicePlans.vue'
const serviceRoutes = [
{
path: '/service',
name: 'ServiceHome',
component: ServiceHome
},
{
path: '/service/past',
name: 'ServicePast',
component: ServicePast
},
// --- NEW ROUTE FOR THE MASTER CALENDAR ---
{
path: '/service/calendar', // Note: No '/:id' parameter
name: 'ServiceCalendar',
component: ServiceCalendar,
},
// -----------------------------------------
{
path: '/service/calender/:id', // Note the typo, should likely be 'calendar'
name: 'CalenderCustomer',
component: CalendarCustomer,
},
{
path: '/service/servicetoday',
name: 'ServiceToday',
component: ServiceToday,
},
{
path: '/service/plans',
name: 'ServicePlans',
component: ServicePlans,
},
]
export default serviceRoutes
//sourceMappingURL=index.ts.map