mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
fix function endpoint transformation
This commit is contained in:
parent
1bf103dab3
commit
9b5c338a90
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user