Node.js/Express middleware to relay requests to various APIs
I think you need to add some middle-wares that helps to run your API code after that middle-ware with proper structuring way.

I would suggest the NPM Module express-app-generator

The advantages of it include:


Code Management in clean way.
Structured Routing.
Add Multiple Middle-Wares in filters array.
Create CRUD API's with REST or CRUD Keyword.