Created
December 17, 2014 16:41
-
-
Save fivetanley/0dc95dae6b775c381257 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
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