2018-12-29 01:27:37 +01:00
|
|
|
import EmberRouter from '@ember/routing/router';
|
2020-10-18 22:38:37 +02:00
|
|
|
import config from 'croodle/config/environment';
|
2014-10-30 21:44:22 +01:00
|
|
|
|
2020-01-08 15:57:46 +01:00
|
|
|
export default class Router extends EmberRouter {
|
|
|
|
location = config.locationType;
|
|
|
|
rootURL = config.rootURL;
|
|
|
|
}
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
Router.map(function () {
|
|
|
|
this.route('poll', { path: '/poll/:poll_id' }, function () {
|
2015-11-02 23:02:59 +01:00
|
|
|
this.route('participation');
|
|
|
|
this.route('evaluation');
|
|
|
|
});
|
2023-10-15 20:37:03 +02:00
|
|
|
this.route('create', function () {
|
2014-10-30 21:44:22 +01:00
|
|
|
this.route('meta');
|
|
|
|
this.route('options');
|
2016-02-16 02:26:27 +01:00
|
|
|
this.route('options-datetime');
|
2014-10-30 21:44:22 +01:00
|
|
|
this.route('settings');
|
|
|
|
});
|
|
|
|
this.route('404');
|
2014-07-06 17:37:54 +02:00
|
|
|
});
|