Custom Visualization request /resposne

Thank you very much Larry_Gregory,
I will try to implement this.
Only one query , here pathname is the path we define in server.route function right

Thank you,
Aditya