Closed GRiMe2D closed 6 years ago
I'm getting a lot of copies same paths in routes array. ~450. But I have only few routes (~50).
Problem Fixed. I was creating a new controllers in before
block, that's why there was a lot of routes.
Maybe disable adding routes after bootstrapping the server?
Sometimes I get ConcurrentModificationException.
I use this code for represent errors to body. Sometimes I get expected (handled) response with 500 status code, sometimes with message of exception
https://github.com/perwendel/spark/blob/bfda598433a03c3ffc8ea010040270ba011178f3/src/main/java/spark/route/Routes.java#L201