From eb7dcaf5569723a8ea092b83c78528c64d158177 Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Mon, 23 Jun 2025 20:24:20 -0500 Subject: [PATCH] More Debugging --- src/decorators/Page.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/decorators/Page.ts b/src/decorators/Page.ts index 2a8176a..591e4c1 100644 --- a/src/decorators/Page.ts +++ b/src/decorators/Page.ts @@ -65,6 +65,10 @@ export function Page(title: string, page: string, extraScripts: (string | { scri console.log('[Page Decorator] Original:', original); + if(original.length === 1 && typeof original[0] === 'function') { + console.log('[Page Decorator] Original First Parameter:', original[0]); + } + // If the original function has more than 3 parameters, we can assume it is an error handler // An error handler starts with the error object, then the request, response and next functions. if(original.length > 3) {