-
Notifications
You must be signed in to change notification settings - Fork 546
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
How do I delete a registered route? #979
Comments
Deleting routes is not supported cc @Duslia |
I've seen gateways that just register the 404 handler route and then do simple route matching and handler reloading themselves. |
Is it an idl-generated route? |
Hertz loads routes provided by external modules (e.g. WASM), external modules update routes, there will be conflicts, hope to delete the old route, register a new route. |
I modified the |
Hertz was not originally designed to consider dynamic registration and deletion of routes, which requires locking to ensure. If dynamic routing is needed, one can use NoRoute and then implement the route matching method themselves. |
Ok, thank you very much |
Describe the Question
How do I delete a registered route?
Hertz version:
0.7.1
The text was updated successfully, but these errors were encountered: