object -> array

This commit is contained in:
2025-03-17 09:22:02 +01:00
parent b694b14065
commit 3e7851aae2
2 changed files with 2 additions and 2 deletions

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) {