Exposing Routes on Router
pquerna opened this issue · 2 comments
pquerna commented
Hi,
I was looking at adding the ability to advertise web
routes to Vulcan in a package outside of gocraft/web. This would be kinda similar to how Mailgun's scroll registers its routes into etcd, so then vulcand can send it traffic:
https://github.com/mailgun/scroll
However the Routes are currently all private, and there is no way to get them once they have been added. This could be as easy as adding a Routes() []*Routes
or similar function, so then it is possible to introspect the routes on a router.