Skip to content

Instantly share code, notes, and snippets.

@fivetanley
Created December 17, 2014 16:41
Show Gist options
  • Save fivetanley/0dc95dae6b775c381257 to your computer and use it in GitHub Desktop.
Save fivetanley/0dc95dae6b775c381257 to your computer and use it in GitHub Desktop.
App.Router.map(function(){
// simple route
this.route('taco');
// simple resource
this.resource('sauce');
// "namespaced" resource with implicit "index" route
this.resource('sauces.taco');
// "namespaced" resource without implicit route
this.resource('sauces.pico', function(){
this.route('index');
this.route('yolo');
// nested namespace resource
this.resource('burrito');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment