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