mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:23:38 +08:00
15 lines
388 B
JavaScript
15 lines
388 B
JavaScript
import EmberRouter from "@ember/routing/router";
|
|
import getUrl from "discourse-common/lib/get-url";
|
|
import { isTesting } from "discourse-common/config/environment";
|
|
|
|
const Router = EmberRouter.extend({
|
|
rootURL: getUrl("/wizard/"),
|
|
location: isTesting() ? "none" : "history",
|
|
});
|
|
|
|
Router.map(function () {
|
|
this.route("step", { path: "/steps/:step_id" });
|
|
});
|
|
|
|
export default Router;
|