Skip to content

Instantly share code, notes, and snippets.

@endash
Created February 20, 2014 14:47
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 endash/9115320 to your computer and use it in GitHub Desktop.
Save endash/9115320 to your computer and use it in GitHub Desktop.
this.resource("artists", function () {
this.route("index");
this.resource("artist", {path: "/artists/:id"}, function () {
this.route('index');
this.resource("albums", function () {
this.route("index");
this.resource("album", {path: "/albums/:id"}, function () {
this.route('index');
this.resource("tracks", function () {
this.route('index');
this.resource('track', {path: "/tracks/:id"}, function () {
this.route('index');
})
})
})
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment