object -> array

This commit is contained in:
Flummi committed 2025-03-17 09:22:02 +01:00
1 parent b694b14065
commit 3e7851aae2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ export default class Router {
*/
use(obj: Router | Tpl): void {
if(obj instanceof Router) {
this.routes = { ...this.routes, ...obj.routes };
this.routes = [ ...this.routes, ...obj.routes ];
this.sortRoutes();
}
if(obj instanceof Tpl) {