reshufflehq / reshuffle

Reshuffle is a lightweight and open source integration and workflow framework in NodeJS.
https://reshuffle.com/
MIT License
118 stars 16 forks source link

Allow custom middleware to be added to the web server #500

Closed antonmarsden closed 3 years ago

antonmarsden commented 3 years ago

Sometimes, users may want to add their own middleware to the web server. A few excellent use cases:

  1. the health check functionality (which is currently hardcoded in Reshuffle.ts)
  2. the use of a cookie parser

This change exposes a addMiddleware() function which can be called prior to starting the server.