How to send response from some other route without changing the url

I have a route called /node-info . I want to return response from some other route when this route is called. I cannot redirect to other route from here.