Skip to content

Instantly share code, notes, and snippets.

@mseeks
Created February 12, 2013 00:03
Show Gist options
  • Save mseeks/4758803 to your computer and use it in GitHub Desktop.
Save mseeks/4758803 to your computer and use it in GitHub Desktop.
define(['presenter', 'director'], function(Presenter, Director) {
var routes = {
'/issues': {
on: Presenter.Issue.list,
'/:id': {
on: Presenter.Issue.show
}
}
};
var router = new Router(routes);
var initialize = function(){
router.init();
};
return {
initialize: initialize
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment