I am working on an application that supports an arbitrarily deep tree structure (folders). Right now we are supporting this via a globbing route so that we can have a natural, logical, URL. As we have started adding more features and more interlinking between different aspects of the application I am starting to question this approach.
Our current router:
this.resource('folders', function() {
this.resource('folder', { path: '/*path' }, function() {
this.route('edit');
this.route('new');
});
this.route('new');
})
I am starting to think that we should do this by either a query string so that we can by pass the globbing, or replace our path segment delimiter to something else.
Has anyone done something similar to this using globbing routes or some other approach, how did it work for you?