Created
April 12, 2013 14:25
-
-
Save fritz-gerneth/5372375 to your computer and use it in GitHub Desktop.
This file contains 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
var view = new Controller.View(Template['account.layout'], Template['account.index']); | |
var routeList = new Router.SimpleRouteList([ | |
new Router.Routes.Segment('/:module[/[:action]]', {module: 'index', action: 'index'}) | |
]); | |
var reactiveRouter = new Router.Reactive(routeList, Meteor.Location.getPath); | |
var dispatcher = new Controller.Dispatcher(reactiveRouter.match, [ | |
new InnoAccel.Account.Controller.Index(view), | |
new InnoAccel.Account.Controller.Project(view) | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment