code: def handleFlaskPostRequest(flaskRequest, endpoint):
      
      if flaskRequest.method == "POST":
          return handleHttpPost(flaskRequest, endpoint)
      elif flaskRequest.method == "OPTIONS":
          return handleHttpOptions()
      else:
          raise exceptions.MethodNotAllowedException()
docs: Handles the specified flask request for one of the POST URLS
      Invokes the specified endpoint to generate a response.