*
* @param route The route prefix for the middleware
* @param handler The Handler to add
*/
public Yoke use(@NotNull String route, final @NotNull Handler<YokeRequest> handler) {
middlewareList.add(new MountedMiddleware(route, new Middleware() {
@Override
public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
handler.handle(request);
}
}));