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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -128,9 +128,9 @@ export function mapRoutes() {
}
});
return BareRouter.extend({
rootURL: getURL("/"),
}).map(function () {
return class extends BareRouter {
rootURL = getURL("/");
}.map(function () {
tree.mapRoutes(this);
this.route("unknown", { path: "*path" });
});