2014-10-30 21:44:22 +01:00
|
|
|
import Ember from 'ember';
|
|
|
|
import config from './config/environment';
|
|
|
|
|
|
|
|
var Router = Ember.Router.extend({
|
|
|
|
location: config.locationType
|
|
|
|
});
|
2014-07-06 17:37:54 +02:00
|
|
|
|
|
|
|
Router.map(function(){
|
2015-11-02 23:02:59 +01:00
|
|
|
this.resource('poll', { path: '/poll/:poll_id' }, function(){
|
|
|
|
this.route('participation');
|
|
|
|
this.route('evaluation');
|
|
|
|
});
|
2014-10-30 21:44:22 +01:00
|
|
|
this.resource('create', function(){
|
|
|
|
this.route('meta');
|
|
|
|
this.route('options');
|
|
|
|
this.route('options-datetime');
|
|
|
|
this.route('settings');
|
|
|
|
});
|
|
|
|
this.route('404');
|
2014-07-06 17:37:54 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|