2020-03-06 17:49:28 -05:00
|
|
|
import EmberRouter from "@ember/routing/router";
|
2016-09-22 14:39:36 -04:00
|
|
|
import getUrl from "discourse-common/lib/get-url";
|
2020-06-01 16:33:43 -04:00
|
|
|
import { isTesting } from "discourse-common/config/environment";
|
2016-09-22 14:39:36 -04:00
|
|
|
|
2020-03-06 17:49:28 -05:00
|
|
|
const Router = EmberRouter.extend({
|
2017-06-14 13:57:58 -04:00
|
|
|
rootURL: getUrl("/wizard/"),
|
2020-06-01 16:33:43 -04:00
|
|
|
location: isTesting() ? "none" : "history"
|
2016-08-31 11:30:51 -04:00
|
|
|
});
|
2016-08-24 14:35:07 -04:00
|
|
|
|
2016-09-07 18:04:01 -04:00
|
|
|
Router.map(function() {
|
|
|
|
this.route("step", { path: "/steps/:step_id" });
|
2016-08-24 14:35:07 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|