Middleware applicator

[sdks/expressjs/Middleware applicator]

Applies a known middleware to the specified express app. Accepted middleware identifiers:

  • "json"

  • "urlencoded"

  • "cors"

Keywords: api, express, middleware, apply, set

Input ports

  • app ID: string

    Identifies the Express app to apply the middleware on.

  • middleware: ("text" or "json" or "urlencoded" or "cors")

Output ports

  • done: any

  • app ID: string

  • error: {"error": string}

    Sends error information in case the middleware could not be applied.

Last updated