So I have routes like /category/tech and /category/tech/new and /category/tech/old etc
they all use ItemsComponent
So is there any way to define these type routes with optional params like we do in ExpressJS
router.get('/category/tech/:filter?', (req, res) => ...
(here both /category/tech and /category/tech/xxx will work)
Or do I have to define them separately like
{path: 'users', component: ItemsComponent},
{path: 'users/:filter', component: ItemsComponent}