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