Need Help. How to register custom routes to gorouter


Lakshman Mukkamalla
 

Hi cf devs,
I want to register some custom routes to the gorouter component of cloud foundry. What I understood was that this could be achieved by nats-pub command but when I try this command on the gorouter VM it was not recognized. Can anyone help me how to register custom routes to gorouter.
https://docs.cloudfoundry.org/concepts/architecture/router.html
What worked:
curl -vvv "http://gorouterusername:gorouterpassword(a)gorouter_ip:gorouter_port/routes"
This gives me the current routes that are registered.

What did not work:
nats-pub 'router.register' 'some custom route'
OR
Is there a rest call to register the custom routes?

It would be of great help if someone can guide me on how to achieve the similar.

Thanks.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.