Skip to content

Instantly share code, notes, and snippets.

@xrl
Created September 13, 2013 19:55
Show Gist options
  • Save xrl/6555314 to your computer and use it in GitHub Desktop.
Save xrl/6555314 to your computer and use it in GitHub Desktop.
<p>Hey there management human. Start managing your fanpix from here.</p>
// For more information see: http://emberjs.com/guides/routing/
AdminDashboard.HomeRoute = Ember.Route.extend({
renderTemplate: function(){
this.render('home',{into: 'empty', outlet: 'naked', controller: 'AuthController'})
}
});
// For more information see: http://emberjs.com/guides/routing/
AdminDashboard.Router.map(function(){
this.resource("authenticated",{path: '/'},function(){
this.route("dashboard")
});
this.route("home");
this.route("signup");
this.route("login");
});
AdminDashboard.Router.reopen({
location: 'history'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment