UNPKG

express-gateway

Version:

A microservices API gateway built on top of ExpressJS

16 lines (15 loc) 384 B
module.exports = { policy: require('./expression'), schema: { $id: 'http://express-gateway.io/schemas/policies/expression.json', type: 'object', properties: { jscode: { type: 'string', description: 'Javascript code to execute against the current egContext', examples: ['req.testValue = 10'] } }, required: ['jscode'] } };