Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you replace a route? #87

Open
cajund opened this issue Oct 19, 2018 · 0 comments
Open

Can you replace a route? #87

cajund opened this issue Oct 19, 2018 · 0 comments

Comments

@cajund
Copy link

cajund commented Oct 19, 2018

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant