decide.nolog.cz/app/router.ts

21 lines
533 B
TypeScript
Raw Normal View History

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
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
2014-07-06 17:37:54 +02:00
Router.map(function () {
this.route('poll', { path: '/poll/:poll_id' }, function () {
this.route('participation');
this.route('evaluation');
});
this.route('create', function () {
2014-10-30 21:44:22 +01:00
this.route('meta');
this.route('options');
this.route('options-datetime');
2014-10-30 21:44:22 +01:00
this.route('settings');
});
2014-07-06 17:37:54 +02:00
});