From ecb9a27d8d575f932569136bb28e1ac9b9ddc68f Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Tue, 24 Jun 2025 07:41:39 -0500 Subject: [PATCH] Seemingly accidentally ended up with an infinite loop.Hopefullly this fixes it --- src/decorators/Controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decorators/Controller.ts b/src/decorators/Controller.ts index e7b4197..fcab684 100644 --- a/src/decorators/Controller.ts +++ b/src/decorators/Controller.ts @@ -77,7 +77,7 @@ export function Controller() // If `fn` is the two parameter variant force it to be a three parameter variant // This is because of how error handling is done in the framework (based on how Express does it) if(fn.length === 2) { - fn = (req: Request, res: Response, next: NextFunction) => fn(req, res, next); + fn = (req: Request, res: Response, next: NextFunction) => target.prototype[method](req, res, next); } // Get the path