=BG= chained a couple of connect middlewares before the actual POST api response function to read all responses as strings irrespective of content type sent in, and another to parse that content as JSON
=BG= refactor to move middleware to separate module from main server