2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/assets/javascripts/wizard/router.js.es6

13 lines
275 B
Text
Raw Normal View History

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