discourse/app/assets/javascripts/wizard/router.js
2020-03-23 14:15:16 -04:00

15 lines
391 B
JavaScript

import EmberRouter from "@ember/routing/router";
import getUrl from "discourse-common/lib/get-url";
import ENV from "discourse-common/config/environment";
const Router = EmberRouter.extend({
rootURL: getUrl("/wizard/"),
location: ENV.environment === "test" ? "none" : "history"
});
Router.map(function() {
this.route("step", { path: "/steps/:step_id" });
});
export default Router;