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