Closed rafaelcorreiapoli closed 9 years ago
// assuming the route name is "freeforall"
FlowRouter.triggers.enter([AccountsTemplates.ensureSignedIn], { except: ["freeforall"] });
https://github.com/kadirahq/flow-router/#defining-triggers-globally
Nice! thanks! is there a way to define an exception for an entire group ?
Using their example...
var adminRoutes = FlowRouter.group({
prefix: '/admin',
name: 'admin',
triggersEnter: [AccountsTemplates.ensureSignedIn]
});
@shactdeveloper, is this solved?
Yes, thank you so much my friends!
you're welcome!
Hi! I have all my routes protected with this FlowRouter.triggers.enter([AccountsTemplates.ensureSignedIn]);
But how can i make an exception? I want to make the path /freeforall not protected How can I do this ?