import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: 'none', rootURL: config.rootURL }); Router.map(function() { this.route('events'); this.route('events', function () { //by default below route will be created in runtime. //this.route('index',{path: '/'}); this.route('new'); }); }); export default Router;