mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
expose endpoint into req
This commit is contained in:
parent
41a6db79d9
commit
1b09d15740
@ -106,7 +106,8 @@ class Server {
|
||||
handleRequest = (req, res, next, endpoint) => {
|
||||
const { route, method, controller } = endpoint
|
||||
req.requestId = nanoid()
|
||||
|
||||
req.endpoint = endpoint
|
||||
|
||||
// exec controller
|
||||
if (typeof controller.exec === "function") {
|
||||
res.setHeader("request_id", req.requestId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user