Skip to content

Instantly share code, notes, and snippets.

@joachimhs
Created January 29, 2014 10:36
Show Gist options
  • Save joachimhs/8685422 to your computer and use it in GitHub Desktop.
Save joachimhs/8685422 to your computer and use it in GitHub Desktop.
App.Router.map(function() {
this.resource('index', {path: '/'}, function() {
this.resource('people', { path: '/people' }, function() {
this.route('active');
this.route('completed');
});
this.resource('places', {path: '/places'}, function() {});
this.resource('things', {path: '/things'}, function() {});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment