Last active
September 20, 2015 10:20
-
-
Save d4h0/8e095d7fefc87d11d4c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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