Skip to content

Instantly share code, notes, and snippets.

@jazlalli
Last active December 12, 2015 10:18
Show Gist options
  • Save jazlalli/4757774 to your computer and use it in GitHub Desktop.
Save jazlalli/4757774 to your computer and use it in GitHub Desktop.
simple object for routing messages by topic
var visit = require('../eventhandlers/visithandler'),
click = require('../eventhandlers/clickhandler');
var routes = {
'Visit': visit.log,
'Click': click.log
};
module.exports = routes;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment