react-redux-starter-kit icon indicating copy to clipboard operation
react-redux-starter-kit copied to clipboard

Multiple paths to a route

Open SmboBeast opened this issue 7 years ago • 0 comments

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: <Test params={params} />, }; }, }; `

SmboBeast avatar Aug 03 '17 07:08 SmboBeast