Documentation / @tenancy-node/adapter-node / withTenancy
Function: withTenancy()
withTenancy(
tenancy,handler,options?): (req,res) =>void
Defined in: index.ts:28
Envuelve un handler de node:http: identifica el tenant, ejecuta el handler en su contexto y responde los errores con su código HTTP (y los deja en el log con su tenant).
Parameters
tenancy
handler
options?
WithTenancyOptions = {}
Returns
(req, res) => void