Hi Guys,
we are trying to upgrade our packages within a project and we encoutered an issue with our routes. there is still some resourses used there. example :
Summary
this.route('objects', function () {
this.route('search', { path: '/' }, function () {
this.resource('objects.items', { path: '/:search_id' }, function () {
this.resource('objects.item', { path: '/item/:item_id'}, function () {
this.route('general', { path: '/' });
this.route('tab', { path: '/tab/:tab' });
this.route('relations');
this.route('diagram');
this.route('comments');
this.route('sources');
this.route('views');
});
});
});
});
is there a way we can migrate these routes without doing too much refactoring? please note that the first resourse (this.resource(‘objects.items’, { path: ‘/:search_id’ }), is working like an optional segment. this is the most important thing which we are not managing to migrate accordinly. and to maintain it’s nested routes without duplicating the nested ones. any help is appreaciated.