Open SmboBeast opened 7 years ago
Guys,
Can a route have multiple paths? For example, I want 'test/:id' and 'test/blahblah/:name/:id' to go to the same page and have the same code executed.
` export default { path: '/test/:id', path: '/test/blahblah/:name/:id',
async action({ params }) { return { title: 'Test', component: , }; }, }; `
Guys,
Can a route have multiple paths? For example, I want 'test/:id' and 'test/blahblah/:name/:id' to go to the same page and have the same code executed.
` export default { path: '/test/:id', path: '/test/blahblah/:name/:id',
async action({ params }) { return { title: 'Test', component: ,
};
},
};
`