DEV: Convert mapping-router to native class syntax (#28513)

This commit is contained in:
David Taylor
2024-08-23 12:58:19 +01:00
committed by GitHub
parent d1cc60c435
commit 87ae3f689c

View File

@@ -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" });
}); });