Move body handler up in the route order to fix stack traces we were having

This commit is contained in:
Colin McDonald 2016-07-10 13:12:31 -04:00
parent 752c2cae96
commit 0071291236

View File

@ -271,10 +271,10 @@ public final class APIv3 extends AbstractVerticle {
http.route().handler(LoggerHandler.create(LoggerFormat.TINY));
http.route().handler(TimeoutHandler.create(TimeUnit.SECONDS.toMillis(5)));
http.route().method(HttpMethod.PUT).method(HttpMethod.POST).method(HttpMethod.DELETE).handler(BodyHandler.create());
http.route().handler(new ActorAttributeHandler());
http.route().handler(new MetricsHandler());
http.route().handler(new AuthorizationHandler());
http.route().method(HttpMethod.PUT).method(HttpMethod.POST).method(HttpMethod.DELETE).handler(BodyHandler.create());
http.exceptionHandler(Throwable::printStackTrace);
// TODO: The commented out routes