@Bean
 Void server(RouterFunction<?> router /*ServerProperties serverProperties*/) {
   HttpHandler handler =
       WebHttpHandlerBuilder.webHandler(RouterFunctions.toHttpHandler(router)).build();
   ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
   return HttpServer.create(8080).newHandler(adapter).block().onClose().block();
 }
  @Bean
  RouterFunction<?> router(
      SecurityHandlerFilterFunction securityHandlerFilter, ForumMemberHandler forumMemberHandler) {
    //        return
    // RouterFunctions.route(RequestPredicates.PUT("/users").and(RequestPredicates.contentType(MediaType.APPLICATION_JSON)), forumMemberHandler::put)
    //                .andRoute(RequestPredicates.GET("/users"), forumMemberHandler::findAll)
    //                .andRoute(RequestPredicates.GET("/users/{id}"), forumMemberHandler::findById)
    //                .andRoute(RequestPredicates.DELETE("/users/{id}/{rev}"),
    // forumMemberHandler::delete)
    //                .andRoute(RequestPredicates.POST("/login"), forumMemberHandler::login)
    //                .filter(securityHandlerFilter::filter);

    return RouterFunctions.route(
        RequestPredicates.GET("/forums"), forumMemberHandler::findAllForums);
  }