2016-09-23 02:39:36 +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
|
|
|
|
2016-08-31 23:30:51 +08:00
|
|
|
const Router = Ember.Router.extend({
|
2017-06-15 01:57:58 +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() {
|
|
|
|
this.route("step", { path: "/steps/:step_id" });
|
2016-08-25 02:35:07 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|