Closed poltorak closed 8 years ago
This is not possible.
is there any reason this isn't possible?
can you apply triggers.enter to a group?
@poltorak @arunoda has anyone found a way to implement this?
my use case: https://forums.meteor.com/t/flow-router-question-make-an-entire-route-group-public/25887/2
Public = FlowRouter.group({
prefix: '/Public',
name: 'Public
});
Private = FlowRouter.group({
prefix: '/Private',
name: 'Private
});
Private.triggers.enter([ function(context) { return checkAuthorization(context); } ], {});
Hi! I think this is not a bug but rather question. Is there any posibility to exclude whole group from global trigger? Case: Assume we got group:
and some routes:
Now I have global trigger: