Skip to content

Can you replace a route? #87

@cajund

Description

@cajund

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions