From d8e8c3bbcdcd62eb24bee4aa747fca966fdd4f78 Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Mon, 23 Jun 2025 19:42:53 -0500 Subject: [PATCH] Debugging --- src/decorators/Page.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decorators/Page.ts b/src/decorators/Page.ts index 422f1c7..2a8176a 100644 --- a/src/decorators/Page.ts +++ b/src/decorators/Page.ts @@ -63,6 +63,8 @@ export function Page(title: string, page: string, extraScripts: (string | { scri return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) { const original = descriptor.value; + console.log('[Page Decorator] Original:', original); + // 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) {