import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('login'); this.route('logout'); this.route('collections', function() { this.route('create'); this.route('detail', { path: '/:collection_id' }, function() { this.route('edit'); }); }); }); export default Router;