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

Failed to ignore revisions in .git-blame-ignore-revs.

15 lines
391 B
JavaScript
Raw Normal View History

import EmberRouter from "@ember/routing/router";
2018-06-15 11:03:24 -04:00
import getUrl from "discourse-common/lib/get-url";
import ENV from "discourse-common/config/environment";
const Router = EmberRouter.extend({
2018-06-15 11:03:24 -04:00
rootURL: getUrl("/wizard/"),
location: ENV.environment === "test" ? "none" : "history"
});
2016-09-07 18:04:01 -04:00
Router.map(function() {
2018-06-15 11:03:24 -04:00
this.route("step", { path: "/steps/:step_id" });
});
export default Router;