From b8448ccced1a7ba4ff9ab3c3c5c750e9a53963db Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Fri, 5 Mar 2021 00:06:07 +0100 Subject: [PATCH] Remove recursive handler matching --- router.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/router.ts b/router.ts index a09e7df..fb8fc05 100644 --- a/router.ts +++ b/router.ts @@ -74,12 +74,6 @@ export class Node { } } } - // Searches for wildcard handler if no subnode is found - for (const hdl of this.handlers) { - if (hdl.isWildcard()) { - return hdl.get(curPath); - } - } return; } else { const curPath = path[0];