What I would like is a route that can handle all the following routes in 1 line.
Currently it looks like this:
routes: {
'item': 'itemConsole',
'item/view/:workflowId': 'itemDetail',
'item/create': 'itemCreate',
'item/create/:templateId': 'itemCreate',
'item/task/:taskId': 'itemTask',
'item/metrics': 'itemMetrics',
'item/notAccessible': 'itemNotAccessible',
}
I would like to condense that down to something using the splat(*) as mentioned here
This works 'item(*thing)': 'itemController'
but the controller gets passed a single string that I would then have to split and what not. I'd rather it pass them as parameters (action, id)
to my controller not a single string param.