discourse/app/assets/javascripts/wizard/router.js
Robin Ward a95826f60c
Remove discourse constants (#9958)
* DEV: `Discourse.baseUri` does not exist

This never could have worked - should have been `Discourse.BaseUri` if
anything.

* DEV: Remove Discourse.Environment

* DEV: Remove `Discourse.disableMissingIconWarning`

* DEV: A bunch more missing environment checks
2020-06-01 16:33:43 -04:00

15 lines
386 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;