2020-03-07 06:49:28 +08:00
|
|
|
import EmberRouter from "@ember/routing/router";
|
2018-06-15 23:03:24 +08:00
|
|
|
import getUrl from "discourse-common/lib/get-url";
|
2019-11-08 01:20:35 +08:00
|
|
|
import ENV from "discourse-common/config/environment";
|
2016-09-23 02:39:36 +08:00
|
|
|
|
2020-03-07 06:49:28 +08:00
|
|
|
const Router = EmberRouter.extend({
|
2018-06-15 23:03:24 +08:00
|
|
|
rootURL: getUrl("/wizard/"),
|
2019-11-08 01:20:35 +08:00
|
|
|
location: ENV.environment === "test" ? "none" : "history"
|
2016-08-31 23:30:51 +08:00
|
|
|
});
|
2016-08-25 02:35:07 +08:00
|
|
|
|
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" });
|
2016-08-25 02:35:07 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|