forked from perwendel/spark
-
Notifications
You must be signed in to change notification settings - Fork 7
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 can remove a get / ? #13
Comments
Let me see. If it is even possible or if it should have been possible. |
I have found ! |
@RomainDR is this bug still relevant? |
/**
* Unmaps a particular route from the collection of those that have been previously routed.
* Search for previously established routes using the given path and unmaps any matches that are found.
*
* @param path the route path
* @return <tt>true</tt> if this is a matching route which has been previously routed
* @throws IllegalArgumentException if <tt>path</tt> is null or blank
*/
public boolean unmap(String path) {
return routes.remove(path);
} Does this work for you guys? Spark.unmap("/some-earlier-path"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I would make a simply application for minecraft with web request. I would if player disconnect, a route with name delete, but Spark.routes().removeif(...) not work.
The text was updated successfully, but these errors were encountered: