Open lucaswxp opened 9 years ago
Looks like you defined your routers incorrect.
Maybe you should use namespace, here is an example:
map.namespace('admin', function (admin) {
admin.resources('posts', {middleware: basic_auth, except: ['show']}, function (post) {
post.resources('comments');
post.get('likes', 'posts#likes')
});
});
I have the following routes defined:
When I visit /admin/mycontroller/index, I see in my console that compound is trying to access both:
But I was expecting only the first to be routed. Is this a bug? Yes, both routes are valid, but only one is supposed to be executed, not every matching route.