You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a wrapper library around gocraft/web that is used for all of our micro services. I want all of these services to have a /_health endpoint. So I set up one by default when the object is instantiated.
I wanted to also have the ability for a service to pass in their own handler for this endpoint, when that happens, I want to remove the default created automatically, and replace it with the new one.
Is there a way in your code to remove a route and replace it with a new one? If not, any suggestions?
Thanks,
The text was updated successfully, but these errors were encountered:
Hi folks,
I have a wrapper library around gocraft/web that is used for all of our micro services. I want all of these services to have a
/_health
endpoint. So I set up one by default when the object is instantiated.I wanted to also have the ability for a service to pass in their own handler for this endpoint, when that happens, I want to remove the default created automatically, and replace it with the new one.
Is there a way in your code to remove a route and replace it with a new one? If not, any suggestions?
Thanks,
The text was updated successfully, but these errors were encountered: