var Router = Ember.Router.extend();

Router.map(function() {
  this.resource('todos', { path: '/' }, function() {
    // this.route('index', { path: '/' });  // this route is autogenerated
    this.route('active');
    this.route('completed');
  });
});

// use pushState instead of hashchange on URLs
Router.reopen({
  location: 'history'
});

export default Router;
var Router = Ember.Router.extend({
  // use pushState instead of hashchange on URLs
  location: 'history'
});

Router.map(function() {
  this.resource('todos', { path: '/' }, function() {
    // this.route('index', { path: '/' });  // this route is autogenerated
    this.route('active');
    this.route('completed');
  });
});

export default Router;
Move Router.reopen() options to Ember.Router.extend()