mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 08:33:49 +08:00
14 lines
343 B
JavaScript
14 lines
343 B
JavaScript
import getUrl from "discourse-common/lib/get-url";
|
|
import ENV from "discourse-common/config/environment";
|
|
|
|
const Router = Ember.Router.extend({
|
|
rootURL: getUrl("/wizard/"),
|
|
location: ENV.environment === "test" ? "none" : "history"
|
|
});
|
|
|
|
Router.map(function() {
|
|
this.route("step", { path: "/steps/:step_id" });
|
|
});
|
|
|
|
export default Router;
|