import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
    location: config.locationType
});

Router.map(function() {
    this.route('index', {
        path: '/'
    });

    this.route('login');

    this.route('errors', function() {
        this.route('generic');
    });

    this.route('experiments', function() {
        this.route('list', {path: '/'});
        this.route('info', {path: '/:experiment_id'}, function() {
          this.route('index', {path: '/'});
          this.route('edit', {path: '/edit/'});
          this.route('results', {path: '/results/'});
        });
    });

    this.route('participants', function() {
        this.route('profile', {path: ':profile_id/'});
    });
    this.route('settings');
    this.route('project-settings');

    this.route('testplayer');
    this.route('testmodel');
});

export default Router;

@@ -869,16 +869,80 @@
 model');
+%0A%0A    this.route('preview', %7Bpath: '/preview/:experiment_id/'%7D);
 %0A%7D);%0A%0Aex

Add 'preview' route