discourse/app/assets/javascripts/wizard/router.js.es6

13 lines
273 B
Plaintext
Raw Normal View History

import getUrl from 'discourse-common/lib/get-url';
const Router = Ember.Router.extend({
rootURL: getUrl('/wizard'),
2016-09-08 06:04:01 +08:00
location: Ember.testing ? 'none': 'history'
});
2016-09-08 06:04:01 +08:00
Router.map(function() {
this.route('step', { path: '/steps/:step_id' });
});
export default Router;