decide.nolog.cz/app/router.js

23 lines
512 B
JavaScript
Raw Normal View History

2014-10-30 21:44:22 +01:00
import Ember from 'ember';
import config from './config/environment';
2015-12-07 20:24:22 +01:00
const Router = Ember.Router.extend({
2014-10-30 21:44:22 +01:00
location: config.locationType
});
2014-07-06 17:37:54 +02:00
2015-12-07 20:24:22 +01:00
Router.map(function() {
this.resource('poll', { path: '/poll/:poll_id' }, function() {
this.route('participation');
this.route('evaluation');
});
this.resource('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');
});
this.route('404');
2014-07-06 17:37:54 +02:00
});
export default Router;