feat: Add request context middleware for config and dependency injection in hooks (#8480)
This commit is contained in:
@@ -73,6 +73,7 @@ export class FunctionsRouter extends PromiseRouter {
|
||||
headers: req.config.headers,
|
||||
ip: req.config.ip,
|
||||
jobName,
|
||||
config: req.config,
|
||||
message: jobHandler.setMessage.bind(jobHandler),
|
||||
};
|
||||
|
||||
@@ -129,6 +130,7 @@ export class FunctionsRouter extends PromiseRouter {
|
||||
params = parseParams(params, req.config);
|
||||
const request = {
|
||||
params: params,
|
||||
config: req.config,
|
||||
master: req.auth && req.auth.isMaster,
|
||||
user: req.auth && req.auth.user,
|
||||
installationId: req.info.installationId,
|
||||
|
||||
Reference in New Issue
Block a user