mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Convert mapping-router to native class syntax (#28513)
This commit is contained in:
@@ -128,9 +128,9 @@ export function mapRoutes() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return BareRouter.extend({
|
return class extends BareRouter {
|
||||||
rootURL: getURL("/"),
|
rootURL = getURL("/");
|
||||||
}).map(function () {
|
}.map(function () {
|
||||||
tree.mapRoutes(this);
|
tree.mapRoutes(this);
|
||||||
this.route("unknown", { path: "*path" });
|
this.route("unknown", { path: "*path" });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user