Passing one endpoint response to another endpoint

You could call local host and the appropriate listen path?