fix the routes

it's component not componentS
This commit is contained in:
Andreas Zweili 2021-06-27 16:54:35 +02:00
parent 2182a13188
commit 8882c2c100
1 changed files with 4 additions and 4 deletions

View File

@ -11,15 +11,15 @@ const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', redirect: '/coaches' },
{ path: '/coaches', components: CoachesList },
{ path: '/coaches', component: CoachesList },
{
path: '/coaches/:id',
components: CoachDetails,
children: [{ path: 'contact', component: ContactCoach }]
},
{ path: '/register', components: CoachRegistration },
{ path: '/requests', components: RequestsRecieved },
{ path: '/notFound(.*)', components: NotFound }
{ path: '/register', component: CoachRegistration },
{ path: '/requests', component: RequestsRecieved },
{ path: '/notFound(.*)', component: NotFound }
]
});