Express middleware for performing internal batch requests