Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
exports.install = function() {
F.route('/', view_a, ['#A']);
F.route('/*', view_b, ['#B']);
}
F.middleware('A', function(req, res, next, options, controller) {
console.log('A');
next();
});
F.middleware('B', function(req, res, next, options, controller) {
console.log('B');
next();
});
function view_a() {
this.plain('A');
}
function view_b() {
this.plain('B');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.