Skip to content

Instantly share code, notes, and snippets.

@d4h0
Last active September 20, 2015 10:20
Show Gist options
  • Save d4h0/8e095d7fefc87d11d4c5 to your computer and use it in GitHub Desktop.
Save d4h0/8e095d7fefc87d11d4c5 to your computer and use it in GitHub Desktop.
// Generated by CoffeeScript 1.9.3
(function() {
FlowRouter.route("/foo", {
triggersEnter: [
function(context, redirect) {
console.log("foo trigger");
return redirect("/bar");
}
],
action: function(params, query_params) {
return console.log("foo action");
}
});
FlowRouter.route("/bar", {
action: function(ps, qs) {
return console.log("bar action");
}
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment