fix function endpoint transformation

This commit is contained in:
srgooglo 2023-01-27 00:00:32 +01:00
parent 1bf103dab3
commit 9b5c338a90

View File

@ -60,7 +60,7 @@ module.exports = class Controller {
this.customHandler = objEndpoint.customHandler this.customHandler = objEndpoint.customHandler
} }
} }
} else if (typeof endpoint === "function") { } else if (typeof endpoint === "function" && typeof endpoint.prototype.constructor === "undefined") {
// Handle endpoint transformation as a function // Handle endpoint transformation as a function
const endpointFn = endpoint const endpointFn = endpoint