2020-03-07 06:49:28 +08:00
|
|
|
import EmberRouter from "@ember/routing/router";
|
2016-09-23 02:39:36 +08:00
|
|
|
import getUrl from "discourse-common/lib/get-url";
|
2020-06-02 04:33:43 +08:00
|
|
|
import { isTesting } 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({
|
2017-06-15 01:57:58 +08:00
|
|
|
rootURL: getUrl("/wizard/"),
|
2020-06-02 04:33:43 +08:00
|
|
|
location: isTesting() ? "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 () {
|
|
|
|
this.route("step", { path: "/steps/:step_id" });
|
2016-08-25 02:35:07 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|