Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created November 3, 2014 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammerrick/5f6e00091d8040fef155 to your computer and use it in GitHub Desktop.
Save iammerrick/5f6e00091d8040fef155 to your computer and use it in GitHub Desktop.
var routes = Routes(null,
Route({ name:'Home', path:'/', handler:AppHandler },
Route({ name:'Stack', path:'/stack/:id', handler:StackHandler, stackService:new StackService(), cardService:new CardService()}),
Route({ name:'Card', path:'/card/:id', handler:CardHandler, cardService:new CardService()}),
DefaultRoute({handler:NavigationHandler, navigationService:new NavigationService()})
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment