Skip to content

Instantly share code, notes, and snippets.

@Chandler
Created June 18, 2013 07:00
Show Gist options
  • Save Chandler/5803208 to your computer and use it in GitHub Desktop.
Save Chandler/5803208 to your computer and use it in GitHub Desktop.
define(["ember"], function(Em) {
var Router;
Router = Em.Router.extend({
enableLogging: true,
location: 'history'
});
Router.map(function() {
this.route('discovery');
this.resource('organizations', {
path: "/orgs"
}, function() {
this.route('show', {
path: ":id"
});
return this.route('new');
});
return this.route('signup');
});
return Router;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment