Express middleware that auto-responds to HTTP OPTIONS requests with the application's environment variable schema, enabling jambonz portal discovery.
The environment variable schema to expose.
import { envVarsMiddleware } from '@jambonz/sdk/webhook';const envVars = { API_KEY: { type: 'string', description: 'Your API key', required: true },};app.use(envVarsMiddleware(envVars)); Copy
import { envVarsMiddleware } from '@jambonz/sdk/webhook';const envVars = { API_KEY: { type: 'string', description: 'Your API key', required: true },};app.use(envVarsMiddleware(envVars));
Express middleware that auto-responds to HTTP OPTIONS requests with the application's environment variable schema, enabling jambonz portal discovery.