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

14 lines
343 B
Plaintext
Raw Normal View History

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