Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created March 13, 2014 17:46
Show Gist options
  • Select an option

  • Save coderberry/9533261 to your computer and use it in GitHub Desktop.

Select an option

Save coderberry/9533261 to your computer and use it in GitHub Desktop.
var Router = Ember.Router.extend();
Router.map(function() {
this.resource('lti-apps', { path: '/' });
this.resource('lti-app', { path: '/:toolId' }, function() {
this.resource('lti-app.browse', { path: '/browse' }, function() {
this.route('show', { path: '/:folderChain' });
});
this.resource('lti-app.search', { path: '/search' }, function() {
this.route('results', { path: '/results/:searchText' });
this.route('details', { path: '/details/:id' });
});
});
});
export default Router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment