decide.nolog.cz/app/router.ts
Jeldrik Hanschke f0cff27e99
Convert to TypeScript (#713)
* setup typescript

* covert to TypeScript
2023-10-29 19:16:33 +01:00

20 lines
533 B
TypeScript

import EmberRouter from '@ember/routing/router';
import config from 'croodle/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('poll', { path: '/poll/:poll_id' }, function () {
this.route('participation');
this.route('evaluation');
});
this.route('create', function () {
this.route('meta');
this.route('options');
this.route('options-datetime');
this.route('settings');
});
});