discourse/app/assets/javascripts/wizard/router.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
388 B
JavaScript
Raw Normal View History

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({
2017-06-14 13:57:58 -04:00
rootURL: getUrl("/wizard/"),
location: isTesting() ? "none" : "history",
});
2016-09-07 18:04:01 -04:00
Router.map(function () {
this.route("step", { path: "/steps/:step_id" });
});
export default Router;